Skip to content

Commit f5d371a

Browse files
cortinicoAndrei Shikov
authored and
Andrei Shikov
committedFeb 24, 2022
Set Java source/target compatibility for react-native-gradle-plugin to 8
Summary: This is necessary otherwise when building from source on JVM < 11, the `compileJava` task of the Gradle Plugin will fail with `invalid source: 11`. Essentially the Gradle build will not even start because of this. Instead we delegate to a better formatted warning from either AGP or from our plugin. Changelog: [Internal] [Changed] - Set Java source/target compatibility for react-native-gradle-plugin to 8 Reviewed By: ShikaSD Differential Revision: D34111799 fbshipit-source-id: 57ab11fe6c4532576776b586f75e8fcb5c71adcd
1 parent b1c30f8 commit f5d371a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎packages/react-native-gradle-plugin/build.gradle.kts

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ dependencies {
4646
}
4747

4848
java {
49-
sourceCompatibility = JavaVersion.VERSION_11
50-
targetCompatibility = JavaVersion.VERSION_11
49+
sourceCompatibility = JavaVersion.VERSION_1_8
50+
targetCompatibility = JavaVersion.VERSION_1_8
5151
}
5252

5353
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {

0 commit comments

Comments
 (0)
Please sign in to comment.