Apply -Xjvm-default for specific modules only
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user