You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add license-header check to the build (like PrimeFaces) #343
There is no license-header check in the build. The MIT headers on source files are kept by convention only — nothing fails a build when a file ships without one (new source files, test fixtures, generated-tree stubs).
The only adjacent tooling today:
com.spotify.fmt:fmt-maven-plugin — google-java-format, formatting only, no headers.
dependency-review.yml — audits dependency licenses on PRs, not source headers.
Proposal
Add a license-header check like PrimeFaces does it (pom.xml):
com.mycila:license-maven-plugin (PrimeFaces uses 5.1.2) with a single check execution.
Header text in conf/header.txt (the existing MIT header every file already carries, minus per-file year/name where applicable).
licenseSet includes covering src/main/java/** and src/test/java/** per module; exclusions for generated sources (example/generated-example-builder, target/**) and resource files that don't need headers.
With the plugin bound to the default lifecycle, mvn verify/license:check then fails CI on any missing header, and mvn license:format fixes headers mechanically.
Surfaced while reviewing #312 (MapStruct integration).
Generated sources — decided: stay excluded, no headers needed. example/generated-example-builder/**, and in performance-test the generated DTO tree (src/main/java/.../performance_test/library/**) plus processor output (generated-performance-builder/**) are all excluded from the check.
Activity
build: reuse LICENSE.txt as license header source (java-helpers#343)
build: normalize license headers on MapStruct SPI files (java-helpers…
igel-devin-ai commentedon Oct 11, 2026
Follow-up TODO from the license-header check introduced in #345:
src/main/java/**,src/test/java/**of every module) — done in build: add license-header check to the build (#343) #345 viamvn license:format: 38 files got the header added, 4 files with corrupted license text were normalized, 2 files carrying Apache-2.0 headers now have the project-wide MIT header, and the 9 files merged with feat: auto-detect generated builders in MapStruct via BuilderProvider SPI (#300) #312 were normalized to the canonical header.example/generated-example-builder/**, and inperformance-testthe generated DTO tree (src/main/java/.../performance_test/library/**) plus processor output (generated-performance-builder/**) are all excluded from the check.build: add license-header check to performance-test module (java-help…
ci: run license check on performance-test module in default pipeline (j…
build: use uniform 2025-2026 copyright range, drop redundant headerSe…
build: add license-header check to the build (#343) (#345)