Skip to content

[10.x] Retire the per-module license header tests in favour of Apache RAT - #1736

Merged
papegaaij merged 1 commit into
wicket-10.xfrom
retire-license-header-tests-10.x
Nov 2, 2026
Merged

papegaaij merged 1 commit into
wicket-10.xfrom
retire-license-header-tests-10.x

Conversation

@papegaaij

Copy link
Copy Markdown
Contributor

Backport of #1733 to wicket-10.x, for #1723. See #1733 for the reasoning and the migration note. Merge after #1735.

Notes

  • The deprecation of ApacheLicenseHeaderTestCase is binary-compatible, so japicmp accepts it on the maintenance line.
  • since = "10.12.0, 11.0.0" assumes 10.12.0 is not released from the current RC. If it is, this becomes 10.13.0.
  • The examples' header test had changed on 10.x; it is removed here like the others.

Verification

  • mvn clean verify -Pjs-test passes.

🤖 Generated with Claude Code

Every module carried an ApacheLicenceHeaderTest built on
ApacheLicenseHeaderTestCase from wicket-util, each with its own ignore
lists. The root build now checks license headers with Apache RAT over the
whole source tree, the check the Apache Trusted Releases platform runs on a
release, so these tests check a subset of the same thing a second time and
their ignore lists have to be kept in step with .rat-excludes.

The per-module tests are removed. ApacheLicenseHeaderTestCase is public API
in wicket-util's main code, as is the ApacheLicenceHeaderTest that sits next
to it, so both stay and are deprecated for removal instead.

The tests also checked that HTML and XML files start with an XML prolog.
That check goes with them; RAT does not replace it.

An application that extends ApacheLicenseHeaderTestCase keeps working and
gets a deprecation warning. Its replacement is Apache RAT in its own build;
there is no mechanical migration, so no OpenRewrite recipe.

Proposed migration guide text: "ApacheLicenseHeaderTestCase is deprecated
for removal. Wicket checks its own license headers with Apache RAT; use
apache-rat-plugin in your build instead."

Merge after the change that adds Apache RAT to the build.

GitHub issue #1723

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 9ef66ee)
@papegaaij
papegaaij marked this pull request as ready for review October 31, 2026 08:33
@papegaaij
papegaaij merged commit 1adf765 into wicket-10.x Nov 2, 2026
3 checks passed
@papegaaij
papegaaij deleted the retire-license-header-tests-10.x branch November 2, 2026 08:16
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