#Gradle for jdk 20?

1 messages · Page 1 of 1 (latest)

pallid garnet
#

Is gradle STILL not supported for java 20 or am i missing something?

sterile thicketBOT
#

<@&987246554085740594> please have a look, thanks.

unique lantern
#

we are using gradle with java 20 for quite some time in @sterile thicket already

#

and are about to upgrade to 21 now

pallid garnet
#

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.

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

fading parrot
#

Gradle 8.5 even supports running Java 21

pallid garnet
#

well

#

how do i fix it then

fading parrot
#

you're using 8.0

pallid garnet
#

how do i change it

fading parrot
#

either in your build file, or if you're using the wrapper ./gradlew wrapper --gradle-version=8.5

pallid garnet
#

ah