dweiss opened a new issue, #15185:
URL: https://github.com/apache/lucene/issues/15185

   This is a quick check if anybody minds...
   
   I've had a few attempts to refactor apache rat code (that checks file 
licenses) and I have to say my conclusion is that it'd be much simpler to just 
write a simple, specialized task instead of bringing up rat's machinery.
   
   What we need is very simple: 
   * scan source files with some inclusion/exclusions (gradle task/ file 
collections would handle this),
   * check if these source files are covered under any of the approved 
licenses; the list of licenses is very small and they have basic 
substring-based matchers.
   * fail if we can't match any of the licenses.
   
   That's it really. We don't need any fancy report, aggregation or exotic 
licenses. Going through ant/xml report parsing is costly and reimplementing the 
same on top of rat's current API proved to be a headache (for me). I'd rather 
just implement it as a basic incremental gradle task, with permitted license 
string matchers embedded inside.
   
   If anybody can think of a reason this is a bad idea - please let me know.


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to