1
0
mirror of https://github.com/pcvolkmer/etl-processor.git synced 2025-04-19 17:26:51 +00:00

build: use compilerOptions instead of kotlinOptions

Config kotlinOptions will be deprecated in Kotlin >= 2.0
This commit is contained in:
Paul-Christian Volkmer 2024-05-27 12:31:05 +02:00
parent 5e836c48b0
commit 4c39920afd

View File

@ -1,4 +1,5 @@
import org.gradle.api.tasks.testing.logging.TestLogEvent
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
@ -95,9 +96,9 @@ dependencies {
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = "21"
compilerOptions {
freeCompilerArgs.add("-Xjsr305=strict")
jvmTarget.set(JvmTarget.JVM_21)
}
}