[ 
https://issues.apache.org/jira/browse/SAMZA-285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Chen updated SAMZA-285:
-----------------------------

    Attachment: SAMZA-285.3.patch

Uploading a new patch that addresses the remainder of the code review comments.

I have turned the Rat task into a plugin with the configuration specifying 
exclusions in the root build.gradle. The plugin injects a Rat task as a 
dependency on the root project's "check" and runs the Rat task at the beginning 
when {{gradle build}} is invoked.

The Rat task first invokes the Rat Anttask to generate an XML report. Then, it 
parses the XML report and prints a list of all files that do not pass the 
license check. Finally, it performs an XSLT to generate the HTML report.

In the near future, I would like to clean it up and turn this into a proper 
Gradle plugin and contribute it to the Apache Rat project. I will open separate 
tickets for that.

> Use Apache Rat for release audit tests
> --------------------------------------
>
>                 Key: SAMZA-285
>                 URL: https://issues.apache.org/jira/browse/SAMZA-285
>             Project: Samza
>          Issue Type: Improvement
>    Affects Versions: 0.8.0
>            Reporter: David Chen
>            Assignee: David Chen
>             Fix For: 0.8.0
>
>         Attachments: SAMZA-285.1.patch, SAMZA-285.2.patch, SAMZA-285.3.patch, 
> rat-report.html
>
>
> The license-gradle-plugin that we currently use for release audit checks is 
> not very flexible and does not provide an easy way to make exceptions for 
> files like SVG and Jekyll content files (see SAMZA-92).
> Other Apache projects make use use of Apache Rat but usually with Ant or 
> Maven. However, it does appear that it is possible to use Rat with Gradle: 
> https://gist.github.com/kellyrob99/2860971



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to