[hibernate/hibernate-search] 04e14c: HSEARCH-5595 Fix build cache relocatability for ch...
by Marko Bekhta
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-search
Commit: 04e14c54e23976ff11903b9d7de30fc8cf3b5f64
https://github.com/hibernate/hibernate-search/commit/04e14c54e23976ff1190...
Author: Gasper Kojek <gkojek(a)gradle.com>
Date: 2026-04-14 (Tue, 14 Apr 2026)
Changed paths:
M pom.xml
Log Message:
-----------
HSEARCH-5595 Fix build cache relocatability for checkstyle:check
The project-level <resource> pointing at ${rootProject.directory} (to
include LICENSE.txt in META-INF) caused the entire workspace root to be
fingerprinted as a build cache input for all goals consuming project
resources. After a first build, target/ directories appear under the
root, changing the fingerprint and causing cache misses for
checkstyle:check across all 83 modules.
Replace with a dedicated maven-resources-plugin copy-resources execution
that achieves the same result (LICENSE.txt in META-INF) without polluting
the project resource directories.
Commit: 724ef435c1aff8e2e616c947ebeaed22ec5bec62
https://github.com/hibernate/hibernate-search/commit/724ef435c1aff8e2e616...
Author: Gasper Kojek <gkojek(a)gradle.com>
Date: 2026-04-14 (Tue, 14 Apr 2026)
Changed paths:
A .mvn/develocity-custom-user-data.groovy
M build/parents/build/pom.xml
Log Message:
-----------
HSEARCH-5595 Exclude generated test sources from checkstyle cache inputs
The HibernateSearchProcessor generates *__.java metamodel files into
target/generated-test-sources/test-annotations. Maven adds this as a
test source root, and the Develocity extension fingerprints the directory
contents as a cache input for checkstyle:check. This causes 4 cache
misses in the metamodel integration test modules because the generated
files only appear after compiler:testCompile runs.
Two fixes:
- Add **/*__.java to checkstyle excludes (skip style-checking generated code)
- Add develocity-custom-user-data.groovy to exclude **/target/** from the
checkstyle testSourceDirectories cache input fingerprint
Commit: f255bd8f1566458935d94fd0a3425c0c8fb2637d
https://github.com/hibernate/hibernate-search/commit/f255bd8f1566458935d9...
Author: marko-bekhta <marko.prykladna(a)gmail.com>
Date: 2026-04-14 (Tue, 14 Apr 2026)
Changed paths:
R .mvn/develocity-custom-user-data.groovy
M .mvn/extensions.xml
Log Message:
-----------
HSEARCH-5595 Switch to the newer hibernate-develocity-maven-extension version that handles the userdata for checkstyle
Compare: https://github.com/hibernate/hibernate-search/compare/08ba216d6137...f255...
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-search/settings/notifications
2 weeks, 1 day