Closed mykolapolonskyi closed 5 years ago
Please file an issue with Jetbrains, the author of the Kotlin Gradle Plugin. https://youtrack.jetbrains.net/issues/KT
So guys from JB clarify that wasn't bug actually - but misconfiguration for
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
equivalent is
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
so can be jvmTarget property defined once in Gradle KDSL ?
With usage TaskProvider instead of withType doesn't apply jvmTaget option
Expected Behavior
with
works fine
Current Behavior
with
have got an error:
Environment