Add dependencies check script#3941
Add dependencies check script#3941ralf0131 merged 6 commits intoapache:masterfrom htynkn:chore/add-dependencies-check
Conversation
|
Some example for how license-list.txt file looks like |
Codecov Report
@@ Coverage Diff @@
## master #3941 +/- ##
============================================
- Coverage 63.94% 63.87% -0.08%
Complexity 98 98
============================================
Files 715 715
Lines 31493 31493
Branches 5074 5074
============================================
- Hits 20139 20115 -24
- Misses 9052 9074 +22
- Partials 2302 2304 +2
Continue to review full report at Codecov.
|
|
I suggest to add a check to ensure there is no incompatible license, below is what I used: If everything is ok, there should be no output. |
Yeah, we can do this. but I'm wondering are we able to list all license which is not compatible with dubbo? does GPL is the only one we need check? |
No. All the incompatible license are listed here: https://www.apache.org/legal/resolved.html#category-x |
|
@ralf0131 I update script and put all stuff into one script, please review again. Below are dependencies which I'm not sure if need fix:
|
Apache 2.0 License: OK
LGPL: which is imcomplatible with Apache, I am investigating it.
It is actually a 2-Clause BSD License , so I think it is ok. I found some more reported by the script:
BEA license is said to be incompatible with Apache, need to investigate it.
CPL 1.0 is OK, but junit 3.8.1 should not be included, need to exclude it if possible.
Standard BSD license is compatible with Apache.
CPL is compatible with Apache. My suggestion to improve the script is to add the following to
|
ralf0131
left a comment
There was a problem hiding this comment.
Let merge it and improve it later.
Sorry, I'm busy recently. will try to do some improvement when I get time. and also happy to see if anyone else can help on it |
What is the purpose of the change
Run script to get dependencies license list
For example:
licenseCheck.sh- will check whole projectlicenseCheck.sh module-name- will only check specific moduleResult will save in
license-list.txtfileBrief changelog
Verifying this change
test script
Follow this checklist to help us incorporate your contribution quickly and easily:
[Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.mvn clean install -DskipTests=false&mvn clean test-compile failsafe:integration-testto make sure unit-test and integration-test pass.