it looks like with kotlin 1.8.0-dev-3517 and gradle 8.0-20220928221247+0000 i get the following when setting my toolchain to java 19:
Copy code
Execution failed for task ':compileTestKotlin'.
> Error while evaluating property 'compilerOptions.jvmTarget' of task ':compileTestKotlin'.
> Failed to calculate the value of property 'jvmTarget'.
> Unknown Kotlin JVM target: 19
wakingrufus
09/29/2022, 10:06 PM
is it possible to use jdk 19 yet?
e
ephemient
09/30/2022, 3:22 AM
you can run on a later Java version, and use its APIs, than Kotlin's jvmTarget
ephemient
09/30/2022, 3:25 AM
changing that allows the Kotlin compiler to emit newer bytecode, but looking at the JDK 19 release notes, I don't see anything new at that level
t
tapchicoma
09/30/2022, 8:17 AM
JvmTarget.JVM_19
was just recently added into Kotlin. Try newer dev version