How can I target JVM 21 in a Kotlin 2.1.21 project...
# getting-started
v
How can I target JVM 21 in a Kotlin 2.1.21 project?
jvmTarget.set(JvmTarget.JVM_21)
is an unresolved reference. JVM_20 exists but not 21.
Ah, perhaps I need Kotlin 2.2.0 for that.
k
You need Kotlin Gradle Plugin version 1.9.20 or later.
s
For completeness, you should probably use the same version for Kotlin and Kotlin Gradle Plugin.