dejan2609 commented on PR #23424:
URL: https://github.com/apache/kafka/pull/23424#issuecomment-6722459025

   ### Update: rebased, license matchers reduced to Apache only
   
   - Rebased onto the latest trunk; the `[WIP]` commit and its revert are 
dropped. The PR now has 3 commits (`build.gradle`: +10 / -4).
   - The default license matchers are turned off and only the Apache License is 
approved. The description explains why.
   - `tasks.rat` replaces `rat` for configuring the task (both refer to the 
same task; `tasks.rat` is more explicit).
   - The additional commit announced above (eskatos/creadur-rat-gradle#40) is 
not needed: with only the Apache matcher, `build.gradle` is reported with only 
its Apache license.
   
   #### Why only the Apache License
   Tested in a session with Claude, each configuration on the same tree (7,589 
files scanned):
   
   | Configuration | Result | Other licenses detected |
   |---|---|---|
   | Plugin defaults | pass | `NOTICE-binary`: BSD 3 clause (SPDX lines) |
   | Plugin defaults, `approvedLicense("AL")` | **fail** | `NOTICE-binary`: BSD 
3 clause, unapproved |
   | Defaults off, Apache matcher only (**this PR**) | pass | none |
   | Defaults off, Apache and EPL matchers | pass | `LICENSE-binary`: EPL |
   
   With the default matchers, the result depends on the contents of 
`NOTICE-binary` and `LICENSE-binary`, which #23826 and #22266 are changing. GPL 
is not approved by default since RAT 0.18 (RAT-455), so a GPL SPDX line in 
`NOTICE-binary` would fail the build. With only the Apache matcher, the result 
does not depend on those files, and the coverage is the same as on trunk, where 
RAT 0.15 reports every checked file as Apache-licensed.
   
   #### Latest results
   - The same files are scanned as on trunk (7,590), apart from the removed 
style file.
   - RAT 0.18 classifies `doap_Kafka.rdf` as binary, so its license header is 
no longer checked.
   - A tracked file without a license header fails the RAT check.
   - The `rat` task takes 28s instead of 10s on trunk (second run of `./gradlew 
rat --rerun` on my laptop).
   
   The PR is ready for review, and the related PR #23905 will be rebased on top 
of this one. Reviews are welcome.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to