We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
kotlin.compilerOptions.jvmTarget
1 parent 731aacf commit e216486Copy full SHA for e216486
1 file changed
build.gradle
@@ -1,3 +1,5 @@
1
+import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2
+
3
plugins {
4
id("java-library")
5
alias(libs.plugins.kotlin.jvm)
@@ -15,7 +17,7 @@ java {
15
17
}
16
18
kotlin {
19
compilerOptions {
- jvmTarget = rootProject.kotlinJvmTarget
20
+ jvmTarget = JvmTarget.fromTarget(rootProject.javaVersion.toString())
21
// allWarningsAsErrors = true // replaced by "DeprecatedCall" in lint
22
23
0 commit comments