Skip to content

HHH-19673 hibernate-gradle-plugin 7.0.0.CR1 wrongly requires Java 21+ #10677

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

Merged
merged 2 commits into from
Aug 1, 2025

Conversation

yrodiere
Copy link
Member

@yrodiere yrodiere commented Jul 31, 2025

https://hibernate.atlassian.net/browse/HHH-19673

It seems this one-liner does the trick for the bytecode version of compiled class files (obviously, since that's handled by the java-module plugin). I'm hoping this is all Gradle needs to accept using a module in a project using Java 17.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


…ules to hibernate-gradle-plugin

Otherwise the Java requirement on release will be whatever we use on CI,
which currently is Java 21...
@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Jul 31, 2025

Thanks for your pull request!

This pull request appears to follow the contribution rules.

› This message was automatically generated.

@yrodiere yrodiere requested review from sebersole and Copilot July 31, 2025 15:24
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a Java version compatibility issue in the hibernate-gradle-plugin where it was incorrectly requiring Java 21+ instead of supporting Java 17. The fix involves changing the plugin reference from local.module to local.java-module to ensure proper bytecode version handling for compiled class files.

  • Changes the Gradle plugin ID to use the correct module plugin that handles Java bytecode versioning

@yrodiere yrodiere merged commit 9a42ca7 into hibernate:main Aug 1, 2025
24 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant