Skip to content

[2.x]: GH-1722: Make the source release pass the RAT check of Apache Trusted Releases - #1728

Draft
rzo1 wants to merge 1 commit into
opennlp-2.xfrom
bp-2.x-gh-1722
Draft

rzo1 wants to merge 1 commit into
opennlp-2.xfrom
bp-2.x-gh-1722

Conversation

@rzo1

@rzo1 rzo1 commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Backport of #1725 to 2.x (#1722). Draft until #1725 is merged; the commit reference will then be updated to the merge commit.

On 2.x the RAT check never failed: numUnapprovedLicenses was set to 1000000 and rat-excludes was only read in the apache-release profile. So this also takes over the RAT configuration of main (#1386), excludes the remaining test fixtures and adds the Apache header to .gitattributes, README_FOOTER.html, the Dockerfile and the two opennlp-dl READMEs. RAT 0.18 run as ATR runs it reports 0 unapproved files in the 2.x source archive instead of 148, and apache-rat:check passes for all modules.

Apache Trusted Releases runs RAT on the source archive and reads the
exclusions only from a .rat-excludes file at its top directory. Rename
rat-excludes to .rat-excludes, convert its comments to '#', prefix its
patterns with **/ so they match from a module and from the archive, and
add it to the source archive. The apache-rat-plugin now reads it in
every build via inputExcludeFile and fails on unapproved files instead
of only in the apache-release profile. Exclude the remaining test
fixtures and add the Apache header to the files that lacked it.

Backport of #1725 (51e5126)

Signed-off-by: Richard Zowalla <rzo1@apache.org>
@rzo1 rzo1 added this to the 2.5.14 milestone Dec 3, 2026
@rzo1 rzo1 added task Maintenance or housekeeping work (Jira: Task) component: build Build, packaging, CI and test infrastructure backport: 2.x Also needs to go to the opennlp-2.x branch labels Dec 3, 2026
@rzo1 rzo1 self-assigned this Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport: 2.x Also needs to go to the opennlp-2.x branch component: build Build, packaging, CI and test infrastructure task Maintenance or housekeeping work (Jira: Task)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant