-
Notifications
You must be signed in to change notification settings - Fork 26.4k
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
Add dependencies check script #3941
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
|
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.
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.txt
fileBrief 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-test
to make sure unit-test and integration-test pass.