From a6ebf2b7bcc4db405b941a560c7137cf5bc01598 Mon Sep 17 00:00:00 2001 From: Dennis Falling Date: Fri, 5 Jun 2026 20:37:52 +0100 Subject: [PATCH] Pin Gradle to <9.4 (incompatible with React Native 0.85.3) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- renovate.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/renovate.json b/renovate.json index a0f4214..2e33d25 100644 --- a/renovate.json +++ b/renovate.json @@ -2,6 +2,12 @@ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": ["config:recommended"], "packageRules": [ + { + "description": "Pin Gradle to <9.4. React Native 0.85.3's bundled gradle-plugin (node_modules/@react-native/gradle-plugin) is compiled with Kotlin 2.1.20, whose compiler can only read Kotlin metadata up to 2.3. Gradle >=9.4 bundles a Kotlin 2.3.x stdlib (metadata 2.3.0) that leaks onto the settings-plugin compile classpath, so the build fails compiling the RN plugin (`Module was compiled with an incompatible version of Kotlin`). 9.3.1 (Kotlin 2.2.21) is the highest working version. Raise this ceiling once React Native ships a gradle-plugin built with Kotlin >=2.3.", + "matchPackageNames": ["gradle"], + "matchManagers": ["gradle-wrapper"], + "allowedVersions": "<9.4.0" + }, { "description": "Group the React Native core and its tooling — they are pinned to the same release and must bump atomically", "matchPackageNames": [