We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
compileJava
1 parent c6da281 commit a84d513Copy full SHA for a84d513
jvm/gradle/jvm-target.gradle
@@ -6,6 +6,9 @@ if (plugins.hasPlugin('org.jetbrains.kotlin.jvm')) {
6
}
7
8
9
+ tasks.named('compileJava', JavaCompile) {
10
+ options.release = Integer.parseInt(ver_JVM_TARGET)
11
+ }
12
} else if (plugins.hasPlugin('org.jetbrains.kotlin.multiplatform')) {
13
kotlin {
14
jvm {
@@ -24,8 +27,3 @@ if (plugins.hasPlugin('org.jetbrains.kotlin.jvm')) {
24
27
25
28
26
29
-
-// Set Java compilation target to match Kotlin
-tasks.withType(JavaCompile) {
30
- options.release = Integer.parseInt(ver_JVM_TARGET)
31
-}
0 commit comments