gpopides
11/18/2026, 9:59 AMCLOVIS
11/18/2026, 10:54 AMgpopides
11/18/2026, 11:38 AMgpopides
11/18/2026, 11:39 AMkotlin {
jvmToolchain(27)
compilerOptions {
apiVersion.set(KotlinVersion.KOTLIN_2_5)
jvmTarget.set(JvmTarget.JVM_27)
}
}
this wont work for example with kotlin 2.4.1mikhail.zarechenskiy
11/18/2026, 1:39 PMInconsistent JVM Target Compatibility Between Java and Kotlin Tasks
?gpopides
11/18/2026, 1:50 PMplugins {
`jvm-test-suite`
`java-test-fixtures`
java
kotlin("jvm") version "2.4.21"
alias(libs.plugins.sentry)
alias(libs.plugins.detekt)
alias(libs.plugins.shadow)
alias(libs.plugins.kotest)
alias(libs.plugins.spotless)
}
kotlin {
jvmToolchain(27)
compilerOptions {
apiVersion.set(KotlinVersion.KOTLIN_2_5)
jvmTarget.set(JvmTarget.JVM_27)
}
}
we get the following
* What went wrong:
Script compilation errors:
Line 29: jvmTarget.set(JvmTarget.JVM_27)
^ Unresolved reference 'JVM_27'.
Line 55: jvmTarget.set(JvmTarget.JVM_27)
^ Unresolved reference 'JVM_27'.
the enum essentially does not have the valuegpopides
11/18/2026, 1:51 PMmikhail.zarechenskiy
11/18/2026, 1:57 PMgpopides
11/18/2026, 2:05 PMmikhail.zarechenskiy
11/18/2026, 2:10 PMkotlin.jvm.target.validation.mode=warning flag in gradle.properties. And it’s something that we should be probably adjust on our sidegpopides
11/18/2026, 2:11 PM