Skip to content

update Apache RAT 0.15 to 0.18 - #9669

Open
ebarboni wants to merge 1 commit into
apache:masterfrom
ebarboni:rat18
Open

ebarboni wants to merge 1 commit into
apache:masterfrom
ebarboni:rat18

Conversation

@ebarboni

@ebarboni ebarboni commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Adapt the build to be compatible with last Apache RAT.
It take more time than on .15 to do the task. The report.txt is much more verbose than .15 not sure we shoud keep it.
Used mostly there:
https://ci-builds.apache.org/job/Netbeans/job/netbeans-license/lastSuccessfulBuild/artifact/nbbuild/build/

Parsing adjusted in our RatReportTask because of XML grammar changes.

Ignore 3 files in installer to avoid error because it handle GPL header.

Rat .18 start with following. More detailled. sh and xml can be shown as Binaries


-----------------------------------------------------
Counters
-----------------------------------------------------
    (Entries starting with '!' exceed the minimum or maximum values)
  Approved:           49152    A count of approved licenses.
  Archives:           9    A count of archive files.
  Binaries:           560    A count of binary files.
  Document types:     5    A count of distinct document types.
  Ignored:            23    A count of ignored files.
  License categories: 2    A count of distinct license categories.
  License names:      2    A count of distinct license names.
  Notices:            33    A count of notice files.
  Standards:          49151    A count of standard files.
  Unapproved:         0    A count of unapproved licenses.
  Unknown:            0    A count of unknown file types.


-----------------------------------------------------
Licenses detected
-----------------------------------------------------

Apache License 2.0: 49150
The MIT License: 2

-----------------------------------------------------
License Categories detected
-----------------------------------------------------

AL   : 49150
MIT  : 2

Rat .15

Notes: 33
Binaries: 205
Archives: 11
Standards: 49531

Apache Licensed: 49505
Generated Documents: 0

JavaDocs are generated, thus a license header is optional.
Generated files do not require license headers.

@ebarboni ebarboni added Upgrade Library Library (Dependency) Upgrade build labels Oct 5, 2026

@mbien mbien left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

cool!

@mbien mbien added this to the NB32 milestone Oct 6, 2026
Comment thread nbbuild/rat-exclusions.txt

@neilcsmith-net neilcsmith-net left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, thanks!

How much slower? Nothing too concerning?

@ebarboni

ebarboni commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

I would say a lot a few minutes. We do two reports one txt(for human)) on xml (for report processing)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Upgrade Library Library (Dependency) Upgrade

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants