Skip to content

Commit

Permalink
Move to CompilerOptions gradle dsl
Browse files Browse the repository at this point in the history
  • Loading branch information
Syer10 committed Sep 3, 2024
1 parent 9b9eb16 commit 248b886
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.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
import org.jmailen.gradle.kotlinter.tasks.LintTask
Expand Down Expand Up @@ -71,9 +72,9 @@ tasks {

withType<KotlinJvmCompile> {
dependsOn("formatKotlin")
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
freeCompilerArgs = listOf("-Xcontext-receivers")
compilerOptions {
jvmTarget = JvmTarget.JVM_1_8
freeCompilerArgs.add("-Xcontext-receivers")
}
}

Expand Down

0 comments on commit 248b886

Please sign in to comment.