Skip to content

Commit

Permalink
configure the Kotlin compiler option for multiplatform projects (#2877)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinbonnin committed Jan 19, 2021
1 parent 4bfb68b commit 29e9667
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle.kts
Expand Up @@ -46,6 +46,15 @@ subprojects {
freeCompilerArgs = freeCompilerArgs + "-Xopt-in=kotlin.RequiresOptIn"
}
}
(project.extensions.findByName("kotlin")
as? org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension)?.run {
sourceSets.all {
languageSettings.apply {
apiVersion = "1.3"
this.useExperimentalAnnotation("kotlin.RequiresOptIn")
}
}
}

tasks.withType<Test> {
systemProperty("updateTestFixtures", System.getProperty("updateTestFixtures"))
Expand Down

0 comments on commit 29e9667

Please sign in to comment.