Skip to content

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 Copilot and sebersole 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