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 14, 2021
1 parent 3821047 commit c72d089
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle.kts
Expand Up @@ -41,6 +41,15 @@ subprojects {
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> {
testLogging {
Expand Down

0 comments on commit c72d089

Please sign in to comment.