diff --git a/build.gradle b/build.gradle index c2c3f37c..12b30a7b 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,4 @@ -import org.jetbrains.kotlin.gradle.tasks.KotlinCompile +import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile buildscript { repositories { @@ -26,8 +26,9 @@ tasks.register('clean', Delete) { delete getLayout().getBuildDirectory() } -tasks.withType(KotlinCompile).configureEach { - kotlinOptions { - freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn" + +tasks.withType(KotlinJvmCompile).configureEach { + compilerOptions { + freeCompilerArgs.add("-opt-in=kotlin.RequiresOptIn") } }