jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.53k stars 4.02k forks source link

JHipster 8 doesn't work with Java 22 #25562

Closed mraible closed 4 months ago

mraible commented 7 months ago
Overview of the issue

JHipster 8 doesn't work with Java 22. If you're using Gradle, you get an error:

BUG! exception in phase 'semantic analysis' in source unit 'precompiled_…' Unsupported class file major version 66

If you're using Maven, CRLFLogConverterTest doesn't pass.

Screenshot 2024-03-20 at 9 06 59 AM
Motivation for or Use Case

We should support the latest release of Java.

Reproduce the error
sdk install java open-22
jhipster --defaults
Suggest a Fix

Upgrade to Gradle 8.7 and fix the test.

JHipster Version(s)

8.2.0

atomfrede commented 7 months ago

Do we have already update to spring boot 3.2.4? The class file error comes from the gradle boot plugin which need to be updated to 3.2.4 for java 22 as far as I can tell.

EDIT: nevermind, it should be 3.2.4 already :thinking:

mshima commented 7 months ago

Do we have already update to spring boot 3.2.4? The class file error comes from the gradle boot plugin which need to be updated to 3.2.4 for java 22 as far as I can tell.

EDIT: nevermind, it should be 3.2.4 already 🤔

v8.2.1 was released with spring-boot 3.2.3. Tests results should be updated.

atomfrede commented 7 months ago

On master we have 3.2.4 right? At least thats what I see in a generated application. Didn't check yet if that version is really used eventually.

dwarakaprasad commented 6 months ago

Seems like jhipster's reactive stack will have to wait until byte-buddy && BlockHound are resolved...