-
Notifications
You must be signed in to change notification settings - Fork 14k
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
KAFKA-17607: Add CI step to verify LICENSE-binary #18299
base: trunk
Are you sure you want to change the base?
Conversation
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.
Hello @xijiu, Thanks for this PR.
Pardon me, I have a question that this libLicenseCheck
gradle task will be execute on our CI, should we add verify step on the build.yml
?
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 for the patch @xijiu!
@@ -143,6 +143,9 @@ jobs: | |||
find ./site-docs/generated -type f -exec grep -L "." {} \; >&2 | |||
exit 1 | |||
fi | |||
- name: Check missing lib license | |||
run: | | |||
./gradlew libLicenseCheck |
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.
Can you add this to the previous gradlew
invocation?
@@ -1328,6 +1328,43 @@ project(':core') { | |||
duplicatesStrategy 'exclude' | |||
} | |||
|
|||
task libLicenseCheck(dependsOn: 'releaseTarGz', type: Copy) { |
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.
I think it would be better to do this as part of releaseTarGz so we can't mistakenly produce an artifact that is missing licenses. I glanced through build.gradle and I don't see where we're gathering the libraries into the LICENSE file. Do you know where that happens?
As title.
Committer Checklist (excluded from commit message)