Skip to content

Commit 664acaf

Browse files
TheNerdGuyLulumeta-codesync[bot]
authored andcommitted
fix: upgrade foojay-resolver-convention to 1.0.0 (#56210)
Summary: foojay-resolver-convention's version 0.5.0 is not compatible with Gradle 9. (gradle/foojay-toolchains#151) When trying to build for Android on React Native 0.8.2, we are presented with ``` java.lang.NoSuchFieldError: Class org.gradle.jvm.toolchain.JvmVendorSpec does not have member field 'org.gradle.jvm.toolchain.JvmVendorSpec IBM_SEMERU' at org.gradle.toolchains.foojay.DistributionsKt.<clinit>(distributions.kt:16) at org.gradle.toolchains.foojay.FoojayApi.fetchDistributionsIfMissing(FoojayApi.kt:62) at org.gradle.toolchains.foojay.FoojayApi.match$foojay_resolver(FoojayApi.kt:49) at org.gradle.toolchains.foojay.FoojayApi.toLinks(FoojayApi.kt:41) ``` ## Changelog: <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID] [CHANGED] - changed foojay-resolver-convetion version to 1.0.0 For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests Pull Request resolved: #56210 Test Plan: After making the change, the app build without problems. Reviewed By: fabriziocucci Differential Revision: D98883905 Pulled By: cortinico fbshipit-source-id: 18bfbba0e6af1aee660cee13c68c20bab75506d9
1 parent b8149bc commit 664acaf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/gradle-plugin/settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pluginManagement {
1313
}
1414
}
1515

16-
plugins { id("org.gradle.toolchains.foojay-resolver-convention").version("0.5.0") }
16+
plugins { id("org.gradle.toolchains.foojay-resolver-convention").version("1.0.0") }
1717

1818
include(
1919
":react-native-gradle-plugin",

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencyResolutionManagement {
3434
rootProject.name = "react-native-github"
3535

3636
plugins {
37-
id("org.gradle.toolchains.foojay-resolver-convention").version("0.5.0")
37+
id("org.gradle.toolchains.foojay-resolver-convention").version("1.0.0")
3838
id("com.facebook.react.settings")
3939
}
4040

0 commit comments

Comments
 (0)