Skip to content

Commit e216486

Browse files
authored
Cleanup kotlin.compilerOptions.jvmTarget (#24)
1 parent 731aacf commit e216486

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
2+
13
plugins {
24
id("java-library")
35
alias(libs.plugins.kotlin.jvm)
@@ -15,7 +17,7 @@ java {
1517
}
1618
kotlin {
1719
compilerOptions {
18-
jvmTarget = rootProject.kotlinJvmTarget
20+
jvmTarget = JvmTarget.fromTarget(rootProject.javaVersion.toString())
1921
// allWarningsAsErrors = true // replaced by "DeprecatedCall" in lint
2022
}
2123
}

0 commit comments

Comments
 (0)