From dce7803ad428a89da27f27cf58483a9fb64bab46 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Wed, 8 Sep 2021 09:41:50 +0200 Subject: Remove unnecessary module-level opt-ins The declaration at the root does work for multiplatform projects --- build.gradle.kts | 1 - sw-client/build.gradle.kts | 3 --- sw-common-model/build.gradle.kts | 4 ---- 3 files changed, 8 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index a5871fa4..50db0f02 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -27,7 +27,6 @@ subprojects { kotlinOptions.jvmTarget = "15" } - // this doesn't cover multiplatform projects, see sw-common-model's build.gradle.kts tasks.withType> { kotlinOptions.freeCompilerArgs += listOf( "-Xopt-in=kotlin.RequiresOptIn", diff --git a/sw-client/build.gradle.kts b/sw-client/build.gradle.kts index 801fe295..3b260cd0 100644 --- a/sw-client/build.gradle.kts +++ b/sw-client/build.gradle.kts @@ -8,9 +8,6 @@ kotlin { browser() // necessary for local dependency from JS UI module } sourceSets { - all { - languageSettings.optIn("kotlin.RequiresOptIn") - } val commonMain by getting { dependencies { api(projects.swCommonModel) diff --git a/sw-common-model/build.gradle.kts b/sw-common-model/build.gradle.kts index 3a550f25..955d0da5 100644 --- a/sw-common-model/build.gradle.kts +++ b/sw-common-model/build.gradle.kts @@ -9,10 +9,6 @@ kotlin { browser() // necessary for local dependency from JS UI module } sourceSets { - all { - languageSettings.optIn("kotlin.RequiresOptIn") - languageSettings.optIn("kotlin.time.ExperimentalTime") - } val commonMain by getting { dependencies { api(libs.kotlinx.serialization.core) -- cgit