Kotlin 2.5's compiler will only run on JDK 17 or newer. This does not prevent it...

@jw@jakewharton.com

Kotlin 2.5's compiler will only run on JDK 17 or newer. This does not prevent it from still producing libraries which target all the way back to JDK 8. But if you are doing that with a Gradle JVM toolchain, you are cross-compiling incorrectly and about to be broken by this change.

Migrate to Java's -release flag and Kotlin's -Xjdk-release= flag today. Plus you can then enjoy using any modern JDK instead of one from nearly a decade ago.

youtrack.jetbrains.com/issue/K