Pin Gradle to <9.4 (incompatible with React Native 0.85.3)#37
Merged
Conversation
Gradle >=9.4 bundles a Kotlin 2.3.x stdlib, but RN 0.85.3's bundled gradle-plugin is compiled with Kotlin 2.1.20, which cannot read Kotlin 2.3 metadata — the build fails compiling the RN settings-plugin. 9.3.1 (Kotlin 2.2.21) is the highest working version. Stops Renovate from re-proposing the broken upgrade (PR #34) until React Native ships a plugin built with newer Kotlin. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Renovate opened #34 to bump Gradle 9.3.1 → 9.5.1, but it fails CI (
Android assembleDebug) and cannot be made to pass with the current React Native version.React Native 0.85.3's bundled
@react-native/gradle-pluginis compiled with Kotlin 2.1.20, whose compiler can only read Kotlin metadata up to 2.3. Every Gradle ≥9.4 bundles a Kotlin 2.3.x stdlib that leaks onto the settings-plugin compile classpath, so the build dies compiling the RN plugin:Verified locally across versions:
9.3.1 — the version already in use — is the highest Gradle compatible with RN 0.85.3.
Change
Add a
renovate.jsonpackage rule pinning Gradle to<9.4.0so Renovate stops re-proposing the broken upgrade. Closes #34. The ceiling should be raised once React Native ships a gradle-plugin built with Kotlin ≥2.3.🤖 Generated with Claude Code