Skip to content

Commit

Permalink
Use compilerOptions instead of kotlinOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
pcvolkmer committed May 31, 2024
1 parent f0828d6 commit 9c61edb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.springframework.boot.gradle.tasks.bundling.BootBuildImage

Expand Down Expand Up @@ -46,9 +47,9 @@ dependencies {
}

tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = "17"
compilerOptions {
freeCompilerArgs.add("-Xjsr305=strict")
jvmTarget.set(JvmTarget.JVM_17)
}
}

Expand Down

0 comments on commit 9c61edb

Please sign in to comment.