Skip to content

Commit

Permalink
build: replace deprecated compiler options
Browse files Browse the repository at this point in the history
  • Loading branch information
tronghn committed Aug 22, 2024
1 parent 49d2ef7 commit 93c9ba0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

import org.gradle.api.tasks.testing.logging.TestLogEvent
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile

val assertjVersion = "3.26.3"
val flywayVersion = "10.17.1"
Expand Down Expand Up @@ -102,9 +104,9 @@ tasks {
mergeServiceFiles()
}

withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "21"
withType<KotlinJvmCompile>().configureEach {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
}
}

Expand Down

0 comments on commit 93c9ba0

Please sign in to comment.