has anyone tried to target jvmTarget 21+? Finding ...
# compiler
z
has anyone tried to target jvmTarget 21+? Finding that kotlinc hiccups on trying to read module info from the JDK in this case: https://youtrack.jetbrains.com/issue/KT-71985
j
We use it in our build.gradle.kts:
Copy code
kotlin.jvmToolchain(21)
Perhaps your code is not setting the toolchain in all the right places?
z
I don't see how, it's coming from the correct jdk. It's just that the compiler toolchain seems not to know how to handle it
j
Is it significant that it says zulu-22 when you requested 21?
z
jvmTarget != JDK
j
Ah, my bad.
I was thinking of toolchains & jdk.
z
yeah this is using jdk 22 and just targeting 21