Repository navigation
fix: upgrade foojay-resolver-convention to 1.0.0 - #54160
TheNerdGuyLulu wants to merge 1 commit into
Conversation
|
Hi @TheNerdGuyLulu! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
|
I don't believe this is needed for Gradle 9.0.0 |
|
Hi @cortinico, It might be related to usage with openjdk@25. Apparently works fine with openjdk@21. |
Open JDK 25 is not supported yet sadly |
I believe it is, see e.g.
The issue only surfaces if Gradle's toolchain mechanism is actually triggered to bootstrap a JDK in the desired version via the foojay resolver. So can we please reopen this @cortinico? |
@sschuberth can you open a new PR please. We do have a dedicated workflow that triggers whenever a new PR gets opened and it would help us make sure this gets addressed |
@react-native/gradle-plugin@0.85.3 pins foojay-resolver-convention to 0.5.0, which references JvmVendorSpec.IBM_SEMERU -- removed in Gradle 9.0.0+. This project's Gradle wrapper is pinned to 9.3.1, so a clean `expo prebuild --platform android` followed by `./gradlew assembleRelease` fails outright with "Class JvmVendorSpec does not have member field IBM_SEMERU" before anyone gets to a real build error. Bumping the pinned version to 1.0.0 (which dropped the IBM_SEMERU reference) fixes it; known upstream issue, same fix react-native itself later shipped (react/react-native#54160). Without this committed, the failure reproduces for anyone else running a first-time Android build from a clean install. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014tP4uXxy1khqzSVCMADoPe
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
Changelog:
Test Plan:
After making the change, the app build without problems.