Skip to content

Commit 88ff1cd

Browse files
committed
Fix compiler options
1 parent a1883a8 commit 88ff1cd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

build.gradle.kts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
12
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
23

34
plugins {
@@ -14,9 +15,9 @@ allprojects {
1415
version = "0.0.1-SNAPSHOT"
1516

1617
tasks.withType<KotlinCompile> {
17-
kotlinOptions {
18-
freeCompilerArgs = listOf("-Xjsr305=strict")
19-
jvmTarget = "17"
18+
compilerOptions {
19+
freeCompilerArgs.set(listOf("-Xjsr305=strict"))
20+
jvmTarget.set(JvmTarget.JVM_17)
2021
}
2122
}
2223
}

0 commit comments

Comments
 (0)