[
https://issues.apache.org/jira/browse/KAFKA-21064?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dejan Stojadinović updated KAFKA-21064:
---------------------------------------
Description:
(+) Action points:
* upgrade Apache RAT Gradle plugin version
* remove redundant custom style file
Migration guide:
* Apache RAT:
** [https://creadur.apache.org/rat/apache-rat/migrationguide/0.17.html]
** [https://creadur.apache.org/rat/apache-rat/migrationguide/0.18.html]
* Gradle RAT plugin:
[https://github.com/eskatos/creadur-rat-gradle/blob/v0.11.0/CHANGELOG.md]
Default licence list:
*
[https://github.com/apache/creadur-rat/blob/apache-rat-project-0.18/apache-rat-core/src/main/resources/org/apache/rat/default.xml#L18]
* [https://github.com/eskatos/creadur-rat-gradle/tree/v0.11.0#license-families]
* note: GPL licenses are not allowed (by a default):
** [https://issues.apache.org/jira/browse/RAT-455] Verify that GPL licenses
are not in the default license list
**
[https://github.com/apache/creadur-rat/commit/b90ef8f761b8ea3f9569325655d4e38ec5d0aaee]
** {code}
> Task :rat
Apache Rat runs on Java 25.0.5
(/home/dejan/.sdkman/candidates/java/25.0.5.0+8-tem)
License families:
[AL ] Apache License - approved
[BSD-3] BSD 3 clause - approved
[CDDL1] COMMON DEVELOPMENT AND DISTRIBUTION LICENSE Version 1.0 - approved
[GPL ] GNU General Public License family - not approved
[MIT ] The MIT License - approved
[OASIS] OASIS Open License - approved
[W3C ] W3C Software Copyright - approved
[W3CD ] W3C Document Copyright - approved
{code}
(i) release notes:
* Apache RAT Gradle plugin:
[https://github.com/eskatos/creadur-rat-gradle/blob/v0.11.0/CHANGELOG.md]
* Apache RAT (bundled version is upgraded form 0.15 to 0.18):
** 0.18:
[https://github.com/apache/creadur-rat/blob/apache-rat-project-0.18/RELEASE_NOTES.txt#L1]
** 0.17:
[https://github.com/apache/creadur-rat/blob/apache-rat-project-0.18/RELEASE_NOTES.txt#L86]
** 0.16.1:
[https://github.com/apache/creadur-rat/blob/apache-rat-project-0.18/RELEASE_NOTES.txt#L375]
** 0.16:
[https://github.com/apache/creadur-rat/blob/apache-rat-project-0.18/RELEASE_NOTES.txt#L414]
Examples (other projects):
* [https://github.com/apache/cloudberry/wiki/RAT-License-Checks]
h4. Note #1: Rationale for removing custom style
*_stylesheet.set(file('gradle/resources/rat-output-to-html.xsl')):_* this style
is equivalent to a default style.
+Steps (use Kafka trunk branch):+
# comment out line 277 -->
*_stylesheet.set(file('gradle/resources/rat-output-to-html.xsl'))_*
# execute: _*./gradlew rat*_
# compare two styles: _*diff build/tmp/rat/default-stylesheet.xsl
gradle/resources/rat-output-to-html.xsl*_
{code:java}
69a70,71
> <p>This HTML version (yes, it is!) is generated from the RAT xml reports
> using Saxon9B. All the outputs required are displayed below, similar to the
> .txt version.
> This is obviously a work in progress; and a prettier, easier to
> read and manage version will be available soon</p>
{code}
h4. Note #2: Old vs. new report:
!screenshot-1.png!
!screenshot-2.png!
was:
(+) Action points:
* upgrade Apache RAT Gradle plugin version
* remove redundant custom style file
Migration guide:
* Apache RAT:
** https://creadur.apache.org/rat/apache-rat/migrationguide/0.17.html
** https://creadur.apache.org/rat/apache-rat/migrationguide/0.18.html
* Gradle RAT plugin:
https://github.com/eskatos/creadur-rat-gradle/blob/v0.11.0/CHANGELOG.md
Defauly licence list:
*
https://github.com/apache/creadur-rat/blob/apache-rat-project-0.18/apache-rat-core/src/main/resources/org/apache/rat/default.xml#L18
* https://github.com/eskatos/creadur-rat-gradle/tree/v0.11.0#license-families
* note: GPL licenses are not allowed (by a default):
** https://issues.apache.org/jira/browse/RAT-455 Verify that GPL licenses are
not in the default license list
**
https://github.com/apache/creadur-rat/commit/b90ef8f761b8ea3f9569325655d4e38ec5d0aaee
(i) release notes:
* Apache RAT Gradle plugin:
[https://github.com/eskatos/creadur-rat-gradle/blob/v0.11.0/CHANGELOG.md|https://github.com/eskatos/creadur-rat-gradle/blob/v0.11.0/CHANGELOG.md]
* Apache RAT (bundled version is upgraded form 0.15 to 0.18):
** 0.18:
[https://github.com/apache/creadur-rat/blob/apache-rat-project-0.18/RELEASE_NOTES.txt#L1]
** 0.17:
[https://github.com/apache/creadur-rat/blob/apache-rat-project-0.18/RELEASE_NOTES.txt#L86]
** 0.16.1:
[https://github.com/apache/creadur-rat/blob/apache-rat-project-0.18/RELEASE_NOTES.txt#L375]
** 0.16:
[https://github.com/apache/creadur-rat/blob/apache-rat-project-0.18/RELEASE_NOTES.txt#L414]
Examples (other projects):
* https://github.com/apache/cloudberry/wiki/RAT-License-Checks
h4. Note #1: Rationale for removing custom style
*_stylesheet.set(file('gradle/resources/rat-output-to-html.xsl')):_* this style
is equivalent to a default style.
+Steps (use Kafka trunk branch):+
# comment out line 277 -->
*_stylesheet.set(file('gradle/resources/rat-output-to-html.xsl'))_*
# execute: _*./gradlew rat*_
# compare two styles: _*diff build/tmp/rat/default-stylesheet.xsl
gradle/resources/rat-output-to-html.xsl*_
{code:java}
69a70,71
> <p>This HTML version (yes, it is!) is generated from the RAT xml reports
> using Saxon9B. All the outputs required are displayed below, similar to the
> .txt version.
> This is obviously a work in progress; and a prettier, easier to
> read and manage version will be available soon</p>
{code}
h4. Note #2: Old vs. new report:
!screenshot-1.png!
!screenshot-2.png!
> Apache RAT Gradle plugin version upgrade: 0.8.1 --> 0.11.0
> ----------------------------------------------------------
>
> Key: KAFKA-21064
> URL: https://issues.apache.org/jira/browse/KAFKA-21064
> Project: Kafka
> Issue Type: Task
> Components: build
> Reporter: Dejan Stojadinović
> Assignee: Dejan Stojadinović
> Priority: Minor
> Labels: Gradle, dependency, gradle, rat, update, upgrade, version
> Attachments: screenshot-1.png, screenshot-2.png
>
>
> (+) Action points:
> * upgrade Apache RAT Gradle plugin version
> * remove redundant custom style file
> Migration guide:
> * Apache RAT:
> ** [https://creadur.apache.org/rat/apache-rat/migrationguide/0.17.html]
> ** [https://creadur.apache.org/rat/apache-rat/migrationguide/0.18.html]
> * Gradle RAT plugin:
> [https://github.com/eskatos/creadur-rat-gradle/blob/v0.11.0/CHANGELOG.md]
> Default licence list:
> *
> [https://github.com/apache/creadur-rat/blob/apache-rat-project-0.18/apache-rat-core/src/main/resources/org/apache/rat/default.xml#L18]
> *
> [https://github.com/eskatos/creadur-rat-gradle/tree/v0.11.0#license-families]
> * note: GPL licenses are not allowed (by a default):
> ** [https://issues.apache.org/jira/browse/RAT-455] Verify that GPL licenses
> are not in the default license list
> **
> [https://github.com/apache/creadur-rat/commit/b90ef8f761b8ea3f9569325655d4e38ec5d0aaee]
> ** {code}
> > Task :rat
> Apache Rat runs on Java 25.0.5
> (/home/dejan/.sdkman/candidates/java/25.0.5.0+8-tem)
> License families:
> [AL ] Apache License - approved
> [BSD-3] BSD 3 clause - approved
> [CDDL1] COMMON DEVELOPMENT AND DISTRIBUTION LICENSE Version 1.0 - approved
> [GPL ] GNU General Public License family - not approved
> [MIT ] The MIT License - approved
> [OASIS] OASIS Open License - approved
> [W3C ] W3C Software Copyright - approved
> [W3CD ] W3C Document Copyright - approved
> {code}
> (i) release notes:
> * Apache RAT Gradle plugin:
> [https://github.com/eskatos/creadur-rat-gradle/blob/v0.11.0/CHANGELOG.md]
> * Apache RAT (bundled version is upgraded form 0.15 to 0.18):
> ** 0.18:
> [https://github.com/apache/creadur-rat/blob/apache-rat-project-0.18/RELEASE_NOTES.txt#L1]
> ** 0.17:
> [https://github.com/apache/creadur-rat/blob/apache-rat-project-0.18/RELEASE_NOTES.txt#L86]
> ** 0.16.1:
> [https://github.com/apache/creadur-rat/blob/apache-rat-project-0.18/RELEASE_NOTES.txt#L375]
> ** 0.16:
> [https://github.com/apache/creadur-rat/blob/apache-rat-project-0.18/RELEASE_NOTES.txt#L414]
> Examples (other projects):
> * [https://github.com/apache/cloudberry/wiki/RAT-License-Checks]
> h4. Note #1: Rationale for removing custom style
> *_stylesheet.set(file('gradle/resources/rat-output-to-html.xsl')):_* this
> style is equivalent to a default style.
> +Steps (use Kafka trunk branch):+
> # comment out line 277 -->
> *_stylesheet.set(file('gradle/resources/rat-output-to-html.xsl'))_*
> # execute: _*./gradlew rat*_
> # compare two styles: _*diff build/tmp/rat/default-stylesheet.xsl
> gradle/resources/rat-output-to-html.xsl*_
> {code:java}
> 69a70,71
> > <p>This HTML version (yes, it is!) is generated from the RAT xml reports
> > using Saxon9B. All the outputs required are displayed below, similar to the
> > .txt version.
> > This is obviously a work in progress; and a prettier, easier to
> > read and manage version will be available soon</p>
> {code}
> h4. Note #2: Old vs. new report:
> !screenshot-1.png!
> !screenshot-2.png!
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)