License report & automatic LICENSE content check#54
License report & automatic LICENSE content check#54RussellSpitzer merged 7 commits intoapache:mainfrom
LICENSE content check#54Conversation
|
Only the last two commits actually belong to this PR:
|
3cfc906 to
e70f1a5
Compare
NOTICE content checkLICENSE content check
16605b2 to
b622b0b
Compare
|
/cc @jbonofre |
b622b0b to
befed2c
Compare
befed2c to
346f06e
Compare
ed95168 to
2214ad4
Compare
There was a problem hiding this comment.
Could do Set: NeedsMentionLicenses.contains(license) instead of || chain
There was a problem hiding this comment.
Comment from another project I think, shouldn't apply here
There was a problem hiding this comment.
yup - copy-paste left-over
There was a problem hiding this comment.
I'm not sure these excludes are relevant to Polaris (yet)
There was a problem hiding this comment.
Not relevant to this project as well
RussellSpitzer
left a comment
There was a problem hiding this comment.
I have a few questions on this related to why we aren't including some elements in our license file.
There are also a few comments/ exclusions that I think are particular to Nessie where this was I think copied from that need to be cleaned up.
2214ad4 to
bc0dd26
Compare
There was a problem hiding this comment.
"Used to generate reference license reports"
There was a problem hiding this comment.
Shouldn't this be the Apache license here?
There was a problem hiding this comment.
Comment is no longer accurate
gradle/libs.versions.toml
Outdated
There was a problem hiding this comment.
Couldn't we just automatically check whether or not our license file matches our dependencies ? We could always do this in a future PR
gradle/license/allowed-licenses.json
Outdated
There was a problem hiding this comment.
This is probably a feature for the plugin and not our build, but it would be great if this json could include the rules for license reproduction rather than us coding it ourselves. (IE. Apache needs x type license, MIT needs full repro, etc ...)
RussellSpitzer
left a comment
There was a problem hiding this comment.
I think we just need to fix the Copyright notice on LicenseFileValidation.kt and the comment in the same file and we are good to merge here.
There was a problem hiding this comment.
We can update the header here.
bc0dd26 to
8797220
Compare
|
@snazy There are still some Snowflake headers in there, could you please tidy them up? |
2cd772e to
267030d
Compare
267030d to
6d709a8
Compare
|
Ping @RussellSpitzer |
|
Thanks @snazy! |
Adds a Gradle plugin to generate license reports, which is then used for two purposes:
LICENSEare mentioned thereThe Gradle
checktask depends on the "dependencies to mention in LICENSE" - so CI will fail if a dependency isn't mentioned there. Those are dependencies that are not licensed as Apache and are either MIT, BSD, Go, ISC or "Universal Permissive".The licence report is generated as HTML and packed as a ZIP file for each Gradle project that is considered a distribution (currently only
:polaris-service).A new project
aggregated-license-reportis there to collect the NOTICE + LICENSE files and all individual projects' license reports and add those to a single ZIP file.This PR is a port of the same functionality that Nessie used for quite a while now.
Depends on #10 and #53