So JDK27 bytecode generation is supported since <K...
# getting-started
s
So JDK27 bytecode generation is supported since Kotlin 2.5.0-Beta1. I upgraded a project to Kotlin 2.5.0-Beta2 and Gradle 9.8.2. I configured it to create JDK27 bytecode (via
jvmToolchain(27)
) and also configured Java27 to be used in Project Structure and in the terminal
Copy code
Temurin        | > * | 27.0.0.0+35        | 27.0.0.0+35-tem
So why why does the Gradle output still claim that JDK27 isn’t supported?
Copy code
./gradlew clean build
Kotlin does not yet support 27 JDK target, falling back to Kotlin JVM_26 JVM target

> Task :buildSrc:compileKotlin UP-TO-DATE
Kotlin does not yet support 27 JDK target, falling back to Kotlin JVM_26 JVM target