Skip to content

Commit

Permalink
Remove the deprecated kotlinOptions DSL.
Browse files Browse the repository at this point in the history
Change build.gradle.kts, replacing the `kotlinOptions` DSL syntax with the currently supported equivalent `compilerOptions`. (fixes dzikoysk#2286)
  • Loading branch information
tech-6 committed Nov 24, 2024
1 parent 849c18d commit 96e7598
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 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.TestExceptionFormat
import org.gradle.api.tasks.testing.logging.TestLogEvent
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

/*
Expand Down Expand Up @@ -108,9 +110,9 @@ allprojects {
}

tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "11"
languageVersion = "1.9"
compilerOptions {
jvmTarget = JvmTarget.JVM_11
languageVersion = KotlinVersion.KOTLIN_1_9
freeCompilerArgs = listOf("-Xjvm-default=all") // For generating default methods in interfaces
}
}
Expand Down

0 comments on commit 96e7598

Please sign in to comment.