Ruckus
08/18/2020, 2:16 PMcompileKotlin
and compileTestKotlin
at the same time? I just ran into an issue where I forgot to turn it on for tests (and it took far longer than it should have to realize my mistake and what the compiler was complaining about).udalov
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
useIR = true
}
}
or in Kotlin:
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions.useIR = true
}
(directly adapted from https://kotlinlang.org/docs/reference/using-gradle.html#compiler-options)Ruckus
08/18/2020, 2:26 PM