Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception due to Gradle entreprise when using Java 20 #33911

Closed
cescoffier opened this issue Jun 8, 2023 · 3 comments
Closed

Exception due to Gradle entreprise when using Java 20 #33911

cescoffier opened this issue Jun 8, 2023 · 3 comments
Assignees
Labels
area/gradle Gradle kind/bug Something isn't working triage/buildscan

Comments

@cescoffier
Copy link
Member

Describe the bug

Anytime I try to build Quarkus with Java 20 (which is the JVM I used the most at the moment), I have:

[ERROR] Error executing a GradleEnterpriseListener callback
org.codehaus.groovy.GroovyBugError: BUG! exception in phase 'semantic analysis' in source unit '/Users/clement/Development/quarkus/quarkus/.mvn/gradle-enterprise-custom-user-data.groovy' Unsupported class file major version 64
    at org.codehaus.groovy.control.CompilationUnit$ISourceUnitOperation.doPhaseOperation (CompilationUnit.java:905)
    at org.codehaus.groovy.control.CompilationUnit.compile (CompilationUnit.java:627)
    at groovy.lang.GroovyClassLoader.doParseClass (GroovyClassLoader.java:389)
    at groovy.lang.GroovyClassLoader.lambda$parseClass$3 (GroovyClassLoader.java:332)
    at org.codehaus.groovy.runtime.memoize.StampedCommonCache.compute (StampedCommonCache.java:163)
    at org.codehaus.groovy.runtime.memoize.StampedCommonCache.getAndPut (StampedCommonCache.java:154)
    at groovy.lang.GroovyClassLoader.parseClass (GroovyClassLoader.java:330)
    at groovy.lang.GroovyShell.parseClass (GroovyShell.java:526)
    at groovy.lang.GroovyShell.parse (GroovyShell.java:538)

It continues but it's ugly, and make looking at bug in the log cumbersome.

Expected behavior

it should either fail silently, or be removed.

Actual behavior

I print an ugly stack trace because it seems they cannot use java20...

How to Reproduce?

Try to build quarkus (not an application, quarkus itself) with java 20.

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@cescoffier cescoffier added the kind/bug Something isn't working label Jun 8, 2023
@quarkus-bot quarkus-bot bot added the area/gradle Gradle label Jun 8, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented Jun 8, 2023

/cc @glefloch, @quarkusio/devtools

@jprinet
Copy link
Contributor

jprinet commented Jun 8, 2023

Upgrading the CCUD extension to 1.12 should enable JDK 20 support

cc @maxandersen

@maxandersen
Copy link
Contributor

fixed by bumping the extension. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/gradle Gradle kind/bug Something isn't working triage/buildscan
Projects
None yet
Development

No branches or pull requests

3 participants