Skip to content

Commit cc218a9

Browse files
committed
Use same JVM target for Java and Kotlin compile tasks
1 parent f19cd20 commit cc218a9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

buildSrc/src/main/kotlin/kotlin-library-conventions.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ afterEvaluate {
2020
kotlinOptions.jvmTarget = extension.mainJavaVersion.toString()
2121
}
2222
named<KotlinCompile>("compileTestKotlin") {
23-
// The Kotlin compiler does not yet support JDK 17 and later (see https://kotlinlang.org/docs/compiler-reference.html#jvm-target-version)
24-
kotlinOptions.jvmTarget = minOf(JavaVersion.VERSION_16, extension.testJavaVersion).toString()
23+
kotlinOptions.jvmTarget = extension.testJavaVersion.toString()
2524
}
2625
}
2726
}

0 commit comments

Comments
 (0)