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

Merged
merged 12 commits into from
Jun 1, 2024
Merged

Add Java 22 support #25645

merged 12 commits into from
Jun 1, 2024

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.

@mshima mshima mentioned this pull request May 24, 2024
6 tasks
@mshima mshima marked this pull request as ready for review June 1, 2024 00:38
@DanielFran DanielFran merged commit bad58d6 into main Jun 1, 2024
56 checks passed
@DanielFran DanielFran deleted the java-22 branch June 1, 2024 08:54
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
4 participants