Zac Sweers
12/15/2022, 7:04 PM> Task slack plugincompileTestKotlin
‘compileTestJava’ task (current target is 11) and ‘compileTestKotlin’ task (current target is 1.8) jvm target compatibility should be set to the same Java version.
By default will become an error since Gradle 8.0+! Read more: https://kotl.in/gradle/jvm/target-validation
Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchainRepro: https://github.com/slackhq/slack-gradle-plugin/pull/166 CC @tapchicoma
Zac Sweers
12/15/2022, 7:05 PMAlexander.Likhachev
12/15/2022, 7:37 PMkotlin-dsl
plugin. It reconfigures some properties in `afterEvaluate`: https://github.com/gradle/gradle/blob/daece9dbc5b79370cc8e4fd6fe4b2cd400e150a8/sub[…]n/org/gradle/kotlin/dsl/plugins/dsl/KotlinDslCompilerPlugins.ktAlexander.Likhachev
12/15/2022, 7:41 PMkotlinDslPluginOptions {
jvmTarget.set(...)
}
but since Gradle 8.0 (at least I see such code in master
of Gradle) it will be automatically picked up from a JVM toolchaintapchicoma
12/15/2022, 8:13 PMtapchicoma
12/15/2022, 8:13 PMtapchicoma
12/15/2022, 8:35 PMkotlin-dsl
plugin setting in afterEvaluate
jvmTarget
to 1.8
tapchicoma
12/15/2022, 8:35 PMtapchicoma
12/15/2022, 8:35 PMZac Sweers
12/15/2022, 8:54 PMtapchicoma
12/15/2022, 9:37 PMKotlinCompile
task in project.Zac Sweers
12/15/2022, 9:42 PM