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

Add Java 22 support #25645

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Add Java 22 support #25645

wants to merge 6 commits into from

Conversation

mraible
Copy link
Contributor

@mraible mraible commented Mar 28, 2024

Fixes #25562.


Please make sure the below checklist is followed for Pull Requests.

@mraible
Copy link
Contributor Author

mraible commented Mar 28, 2024

I think it'd be good to change our build process to test Java 17 and 22. Not sure how to do that.

@mshima mshima marked this pull request as draft April 1, 2024 19:59
@mraible
Copy link
Contributor Author

mraible commented Apr 1, 2024

It looks like Gradle 8.7 only supports building with Java 22, not running with it. From https://docs.gradle.org/current/release-notes.html#support-for-building-projects-with-java-22:

Gradle now supports using Java 22 for compiling, testing, and starting other Java programs. Selecting a language version is done using toolchains.

You cannot run Gradle 8.7 itself with Java 22 because Groovy still needs to support JDK 22. However, future versions are expected to provide this support.

@@ -25,7 +25,7 @@
"app-sample": "ng-mongodb-kafka-cucumber",
"entity": "mongodb",
"environment": "dev",
"java": "21"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

21 would be still kind of interesting, as it is an LTS supported version, just like jdk 17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JHipster 8 doesn't work with Java 22
3 participants