Skip to content

Conversation

@DavideD
Copy link
Member

@DavideD DavideD commented Dec 2, 2025

Fix #2855
Align the headers to the other projects.

I also added a rule for package-info.java files (they were skipped because of this issue in Spotless):
it will add the header before the javadoc and fail the compilation if a javadoc is missing. I think it's an acceptable trade off if we want to be consistent among projects.

It reminds us which test case is using it, and it also handy
to use it with Spotless:
Spotless ignore pacakge-info.java files, but if we add javadoc
we can create a separate rule for applying the license header.
Hibernate Reactive is using a license header for the
java file that's a little different from the other projects
It seems we don't need them anymor
@DavideD DavideD added this to the 4.2.0.CR4 milestone Dec 2, 2025
@DavideD DavideD requested a review from yrodiere December 2, 2025 12:36
@DavideD DavideD added build Something related to the build ci Changes to the Jenkins pipeline or GitHub workflows labels Dec 2, 2025
@marko-bekhta
Copy link
Member

@DavideD
Copy link
Member Author

DavideD commented Dec 2, 2025

OK, thanks, I will add the blame ignore file

Copy link
Member

@yrodiere yrodiere left a comment

Choose a reason for hiding this comment

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

Thanks!

And `module-info.java`

Spotless ingores package-info.java files (see
diffplug/spotless#532), but we can create
a rule that applies it if the file contains a javadoc.

Note that if the package-info.java doesn't have a javadoc,
it will cause an exception at compile time.
@DavideD DavideD merged commit ae51946 into hibernate:main Dec 2, 2025
16 of 17 checks passed
@DavideD DavideD mentioned this pull request Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.2 build Something related to the build ci Changes to the Jenkins pipeline or GitHub workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Align file headers on other Hibernate projects

3 participants