diff options
Diffstat (limited to 'build.gradle.kts')
-rw-r--r-- | build.gradle.kts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 7edf6641..e44a8519 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -13,12 +13,14 @@ subprojects { jcenter() } + val compilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn") tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> { kotlinOptions.jvmTarget = "1.8" + kotlinOptions.freeCompilerArgs += compilerArgs } tasks.withType<org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile> { - kotlinOptions.freeCompilerArgs = listOf("-Xuse-experimental=kotlin.Experimental") + kotlinOptions.freeCompilerArgs = compilerArgs } afterEvaluate { |