summaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
authorjoffrey-bion <joffrey.bion@gmail.com>2021-02-10 17:14:27 +0100
committerjoffrey-bion <joffrey.bion@gmail.com>2021-02-10 17:14:27 +0100
commitdf9ac938d7f101ffe077751fe2b59a65be940fa8 (patch)
tree29841267710b73b0e74d675cb9f4da8443047f4a /build.gradle.kts
parentBetter connection logs (diff)
downloadseven-wonders-df9ac938d7f101ffe077751fe2b59a65be940fa8.tar.gz
seven-wonders-df9ac938d7f101ffe077751fe2b59a65be940fa8.tar.bz2
seven-wonders-df9ac938d7f101ffe077751fe2b59a65be940fa8.zip
Cleanup experimental annotations
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts16
1 files changed, 7 insertions, 9 deletions
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<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
+ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> { // JVM only
kotlinOptions.jvmTarget = "1.8"
- kotlinOptions.freeCompilerArgs += compilerArgs
}
- tasks.withType<org.jetbrains.kotlin.gradle.tasks.Kotlin2JsCompile> {
- kotlinOptions.freeCompilerArgs = compilerArgs
- }
-
- tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompileCommon> {
- kotlinOptions.freeCompilerArgs = compilerArgs
+ // 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",
+ "-Xopt-in=kotlin.time.ExperimentalTime"
+ )
}
tasks.withType<AbstractTestTask> {
bgstack15