From df9ac938d7f101ffe077751fe2b59a65be940fa8 Mon Sep 17 00:00:00 2001 From: joffrey-bion Date: Wed, 10 Feb 2021 17:14:27 +0100 Subject: Cleanup experimental annotations --- build.gradle.kts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'build.gradle.kts') diff --git a/build.gradle.kts b/build.gradle.kts index 46f043f3..360178e9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -24,18 +24,16 @@ subprojects { disabledRules.set(setOf("no-wildcard-imports")) } - val compilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn") - tasks.withType { + tasks.withType { // JVM only kotlinOptions.jvmTarget = "1.8" - kotlinOptions.freeCompilerArgs += compilerArgs } - tasks.withType { - kotlinOptions.freeCompilerArgs = compilerArgs - } - - tasks.withType { - kotlinOptions.freeCompilerArgs = compilerArgs + // this doesn't cover multiplatform projects, see sw-common-model's build.gradle.kts + tasks.withType> { + kotlinOptions.freeCompilerArgs += listOf( + "-Xopt-in=kotlin.RequiresOptIn", + "-Xopt-in=kotlin.time.ExperimentalTime" + ) } tasks.withType { -- cgit