huehnerlady
04/29/2020, 7:02 AMjvmTarget
that version 1.3.72 seems to support Java13, but when I try it out I get the error “Unsupported class file major version 57”, which made me wonder if it was supported after all? 🤔deactivateduser
04/29/2020, 7:10 AMcrummy
04/29/2020, 7:17 AMcompileJava {
sourceCompatibility = '13'
targetCompatibility = '13'
}
huehnerlady
04/29/2020, 7:29 AMorg.jetbrains.kotlin.jvm
org.jetbrains.kotlin.plugin.spring
org.jetbrains.kotlin.plugin.allopen
and with kotlin options
kotlinOptions {
jvmTarget = javaVersion.toString()
freeCompilerArgs = listOf("-Xjsr305=strict")
}
Also has a section
configure<JavaPluginConvention> {
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
Whereby javaVersion
is VERSION_12
of the gradle API.
That works fine.
When I bump up the javaVersion
to VERSION_13
I get the mentioned error
I didn’t say it came from the kotlin, just made me wonder if there is an official place where I can see which version supports which jvmTargets 🙂araqnid
04/29/2020, 9:35 AMhuehnerlady
04/29/2020, 10:37 AM