#Gradle for jdk 20?
1 messages · Page 1 of 1 (latest)
<@&987246554085740594> please have a look, thanks.
we are using gradle with java 20 for quite some time in @sterile thicket already
and are about to upgrade to 21 now
20:04:47: Executing ':Main.main()'...
FAILURE: Build failed with an exception.
- What went wrong:
Could not open init generic class cache for initialization script 'C:\Users\Dennis\AppData\Local\Temp\Main_main__1.gradle' (C:\Users\Dennis.gradle\caches\8.0\scripts\20nvkg7fi4q1y7arsmf8bjnus).
BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 64
- Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
- Get more help at https://help.gradle.org
BUILD FAILED in 60ms
20:04:48: Execution finished ':Main.main()'.
@unique lantern
maybe i cleared the wrong caches
no doesnt work
even if i clear that file
Gradle 8.5 even supports running Java 21
you're using 8.0
how do i change it
either in your build file, or if you're using the wrapper ./gradlew wrapper --gradle-version=8.5
ah