Skip to content

Commit

Permalink
GH-2287 Remove the deprecated kotlinOptions DSL (Resolves #2286)
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`.
  • Loading branch information
tech-6 authored Nov 24, 2024
1 parent 849c18d commit e1cbbc3
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 e1cbbc3

Please sign in to comment.