-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[incubator-kie-issues-1613] Add .rat-excludes file to each repository #6149
Conversation
f164a69
to
5095a4d
Compare
5095a4d
to
3febb80
Compare
|
||
- name: Run Apache RAT | ||
run: | | ||
java -jar apache-rat-0.16.1.jar -d . -E .rat-excludes | grep "== File:" && echo "The files listed above are missing license headers." && exit 1 || echo "All files have license headers." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a file doesn't have a license header and it's not listed in .rat-excludes
, this GHA fails.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
pom.xml
Outdated
<configuration> | ||
<excludes> | ||
<exclude>.rat-excludes</exclude> | ||
<exclude>.gitignore</exclude> | ||
<exclude>DISCLAIMER-WIP</exclude> | ||
<exclude>**/ui-bundle.zip</exclude> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, we cannot share the same .rat-excludes
file for java -jar apache-rat-0.16.1.jar -E
command line and <excludesFile>
in apache-rat-plugin
, because command line expects that the exclude files is written with regular expression (e.g. .*\.csv
) while apache-rat-plugin
expects the exclude files is written with glob pattern (e.g. **/*.csv
). Maintaining both configurations is a little cumbersome.
With this PR, we can check license headers with GHA and also with command line locally. Shall I remove apache-rat-plugin
from pom.xml? @baldimir
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I am fine removing the plugin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Removing the plugin...
GHA kogito-runtimes : flaky. reported in zulip https://kie.zulipchat.com/#narrow/channel/382044-kogito-dev/topic/StandaloneBPMNProcessTest.2EtestEventBasedSplit2.20is.20flaky
|
* antora ui-bundle | ||
Downloaded from: https://github.com/stephengold/antora-ui-bundle | ||
License: Mozilla Public License 2.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool, thank you for keeping mind to update all aspects of the codebase, just sharing, you probably noticed already, we will need to refactor and move content from NOTICE to LICENSE apache/incubator-kie-issues#1616 and apache/incubator-kie-issues#1618
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the heads-up!
…apache#6149) * [incubator-kie-issues-1613] Add .rat-excludes file to each repository * removing apache-rat-plugin as we can check it with command line
…apache#6149) * [incubator-kie-issues-1613] Add .rat-excludes file to each repository * removing apache-rat-plugin as we can check it with command line
Issue: