wakingrufus
12/14/2023, 9:19 PM'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/toolchain>
but they have
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}
Chris Lee
12/14/2023, 9:21 PMwakingrufus
12/14/2023, 9:23 PMwakingrufus
12/14/2023, 9:23 PMChris Lee
12/14/2023, 9:23 PMChris Lee
12/14/2023, 9:23 PMwakingrufus
12/14/2023, 9:23 PMVampire
12/14/2023, 9:56 PMVampire
12/14/2023, 9:56 PMVampire
12/14/2023, 9:57 PMVampire
12/14/2023, 9:58 PMwakingrufus
12/14/2023, 9:58 PMwakingrufus
12/14/2023, 9:58 PMwakingrufus
12/14/2023, 9:58 PMVampire
12/14/2023, 9:58 PMVampire
12/14/2023, 9:59 PMVampire
12/14/2023, 9:59 PMVampire
12/14/2023, 9:59 PMwakingrufus
12/14/2023, 9:59 PMtapchicoma
12/15/2023, 12:00 PMjvmTarget
? It will override the value from toolchain.wakingrufus
12/15/2023, 4:02 PMsubprojects {
plugins.withId("org.jetbrains.kotlin.jvm"){
tasks.withType<KotlinCompile> {
kotlinOptions {
languageVersion = "1.6"
apiVersion = "1.6"
jvmTarget = "11"
}
}
}
}
on my root build, but i changed that to
subprojects {
plugins.withId("org.jetbrains.kotlin.jvm"){
tasks.withType<KotlinCompile> {
kotlinOptions {
languageVersion = "1.6"
apiVersion = "1.6"
}
}
}
}
now and that is when the warning showed uptapchicoma
12/15/2023, 9:35 PM