react-native-macos/packages/react-native-gradle-plugin
Nicola Corti b66ab2c154 Configure JDK Toolchain to 11 for all the 3rd party libraries. (#37575)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37575

This fixes the behavior reported in https://github.com/reactwg/react-native-releases/discussions/54#discussioncomment-5984629
by forcing all the libraries to compile with JDK 11.

This prevents build issues when on Gradle 8 and Kotlin 1.8

Changelog:
[Internal] [Changed] - Configure JDK Toolchain to 11 for all the 3rd party libraries

Reviewed By: cipolleschi

Differential Revision: D46190989

fbshipit-source-id: c88974d24efc2c35b01f28d41af0d0515d63d765
2023-06-01 03:24:45 -07:00
..
gradle/wrapper Gradle to 8.1 (#37018) 2023-04-21 04:52:54 -07:00
src Configure JDK Toolchain to 11 for all the 3rd party libraries. (#37575) 2023-06-01 03:24:45 -07:00
README.md Add missing READMEs & Update package.json in all RN packages (#37090) 2023-04-28 04:26:20 -07:00
build.gradle.kts Kotlin to 1.8.0 and JDK Toolchain to 11 (#37220) 2023-05-04 11:12:00 -07:00
gradlew Gradle to 8.1 (#37018) 2023-04-21 04:52:54 -07:00
gradlew.bat Gradle to 8.1 (#37018) 2023-04-21 04:52:54 -07:00
package.json Add missing READMEs & Update package.json in all RN packages (#37090) 2023-04-28 04:26:20 -07:00
settings.gradle.kts Format .kts files with ktfmt 2022-06-09 02:50:45 -07:00

README.md

@react-native/gradle-plugin

Version

A Gradle Plugin used to support development of React Native applications for Android.

Installation

yarn add @react-native/gradle-plugin

Note: We're using yarn to install deps. Feel free to change commands to use npm 3+ and npx if you like

Testing

To run the tests in this package, run the following commands from the React Native root folder:

  1. yarn to install the dependencies. You just need to run this once
  2. yarn jest packages/react-native-gradle-plugin.