summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@gmail.com>2021-09-08 09:41:50 +0200
committerJoffrey Bion <joffrey.bion@gmail.com>2021-09-08 09:41:50 +0200
commitdce7803ad428a89da27f27cf58483a9fb64bab46 (patch)
tree7873e130c90432cadf994e624cee8189349342d9
parentOptIn GlobalScope usages in JS tests (diff)
downloadseven-wonders-dce7803ad428a89da27f27cf58483a9fb64bab46.tar.gz
seven-wonders-dce7803ad428a89da27f27cf58483a9fb64bab46.tar.bz2
seven-wonders-dce7803ad428a89da27f27cf58483a9fb64bab46.zip
Remove unnecessary module-level opt-ins
The declaration at the root does work for multiplatform projects
-rw-r--r--build.gradle.kts1
-rw-r--r--sw-client/build.gradle.kts3
-rw-r--r--sw-common-model/build.gradle.kts4
3 files changed, 0 insertions, 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<org.jetbrains.kotlin.gradle.dsl.KotlinCompile<*>> {
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)
bgstack15