Apply -Xjvm-default for specific modules only

This commit is contained in:
Mikhael Bogdanov
2021-12-02 14:12:35 +01:00
parent c0ffbe03c6
commit 0997207c7c
9 changed files with 29 additions and 8 deletions
@@ -79,3 +79,8 @@ projectTest {
systemProperty("robolectric.classpath", robolectricClasspathProvider.get())
}
}
//TODO: could be removed after bootstrap
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += "-Xjvm-default=compatibility"
}
@@ -56,4 +56,9 @@ projectTest(parallel = true, jUnitMode = JUnitMode.JUnit5) {
useJUnitPlatform()
}
val generateTests by generator("org.jetbrains.kotlinx.serialization.TestGeneratorKt")
val generateTests by generator("org.jetbrains.kotlinx.serialization.TestGeneratorKt")
//TODO: could be removed after bootstrap
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += "-Xjvm-default=compatibility"
}
@@ -118,3 +118,8 @@ projectTest(jUnitMode = JUnitMode.JUnit5) {
println(filter.includePatterns)
}
}
//TODO: could be removed after bootstrap
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += "-Xjvm-default=compatibility"
}
@@ -55,3 +55,8 @@ javadocJar()
projectTest {
workingDir = rootDir
}
//TODO: could be removed after bootstrap
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.freeCompilerArgs += "-Xjvm-default=compatibility"
}