We have a problem after upgrading to 2.1.20 We get...
# gradle
p
We have a problem after upgrading to 2.1.20 We get the following error when running using JDK 17:
KotlinLibraryConventionPlugin has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0
Is JDK 21 required to target Kotlin 2.1.20?
m
Looks like your build logic convention plugin is targeting Java 21 maybe?
1
Do you have a toolchain setup or anything like this in
build-logic/build.gradle.kts
(or
buildSrc/build.gradle.kts
)?
p
It turns out I had to do a clean to reset the build config cache 😅
m
Wow
Good old "off and on again" solution 😅
💯 2
That's probably a bug in the caching logic somewhere though. If your Gradle JVM changes, and you're not specifying a toolchain/target explicitely, I would have expected the build logic to recompile the convention plugins 🤷
p
Yeah, that's a valid point, I'll see if there's a bug report on gradle
👍 1
👌 1
n
sorry
1