Skip to content

Commit a84d513

Browse files
author
ntwigg
committed
Only adjust compileJava, not everything.
1 parent c6da281 commit a84d513

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

jvm/gradle/jvm-target.gradle

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ if (plugins.hasPlugin('org.jetbrains.kotlin.jvm')) {
66
}
77
}
88
}
9+
tasks.named('compileJava', JavaCompile) {
10+
options.release = Integer.parseInt(ver_JVM_TARGET)
11+
}
912
} else if (plugins.hasPlugin('org.jetbrains.kotlin.multiplatform')) {
1013
kotlin {
1114
jvm {
@@ -24,8 +27,3 @@ if (plugins.hasPlugin('org.jetbrains.kotlin.jvm')) {
2427
}
2528
}
2629
}
27-
28-
// Set Java compilation target to match Kotlin
29-
tasks.withType(JavaCompile) {
30-
options.release = Integer.parseInt(ver_JVM_TARGET)
31-
}

0 commit comments

Comments
 (0)