Skip to content

Commit d9aa382

Browse files
committed
Migrate kotlinOptions to compilerOptions
1 parent df660e6 commit d9aa382

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.gradle.kts

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import cl.franciscosolis.sonatypecentralupload.SonatypeCentralUploadTask
2+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
23
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
34

45
plugins {
@@ -32,7 +33,9 @@ java {
3233
withJavadocJar()
3334
}
3435
tasks.withType<KotlinCompile> {
35-
kotlinOptions.jvmTarget = "1.8"
36+
compilerOptions {
37+
jvmTarget.set(JvmTarget.JVM_1_8)
38+
}
3639
}
3740

3841
publishing {

0 commit comments

Comments
 (0)