-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Add dependencies check script #3941
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
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
85f00a7
add plugin to do dependencies check
htynkn 867709c
remove third-party properties file
htynkn 55336b1
Merge remote-tracking branch 'remotes/origin/master' into chore/add-d…
htynkn 49c4dcd
polish config
htynkn 50e5613
polish config
htynkn 1947248
use missing info in bash
htynkn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,4 +31,7 @@ Thumbs.db | |
| *.orig | ||
|
|
||
| # flatten ignore | ||
| .flattened-pom.xml | ||
| .flattened-pom.xml | ||
|
|
||
| # license check result | ||
| license-list.txt | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # Generated by org.codehaus.mojo.license.AddThirdPartyMojo | ||
| #------------------------------------------------------------------------------- | ||
| # Already used licenses in project : | ||
| # - 3-Clause BSD License | ||
| # - Apache 2.0 | ||
| # - Apache License, Version 2.0 | ||
| # - Apache License, version 2.0 | ||
| # - Apache Software License - Version 2.0 | ||
| # - BEA licensed | ||
| # - CDDL + GPLv2 with classpath exception | ||
| # - CDDL 1.1 | ||
| # - CDDL or GPLv2 with exceptions | ||
| # - COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 | ||
| # - Common Development and Distribution License | ||
| # - Eclipse Public License - Version 1.0 | ||
| # - Eclipse Public License v2.0 | ||
| # - GNU General Public License, Version 2 with the Classpath Exception | ||
| # - GNU Lesser General Public License (LGPL), Version 2.1 | ||
| # - GPL2 w/ CPE | ||
| # - JSR-000107 JCACHE 2.9 Public Review - Updated Specification | ||
| # License | ||
| # - LGPL 2.1 | ||
| # - MPL 1.1 | ||
| # - The 3-Clause BSD License | ||
| # - The MIT License | ||
| # - The New BSD License | ||
| # - WTFPL | ||
| #------------------------------------------------------------------------------- | ||
| # Please fill the missing licenses for dependencies : | ||
| # | ||
| # | ||
| #Sat Apr 27 21:35:39 CST 2019 | ||
| javax.xml.bind--jsr173_api--1.0=Apache License, Version 2.0 | ||
| net.jcip--jcip-annotations--1.0=BEA licensed | ||
20 changes: 20 additions & 0 deletions
20
dubbo-filter/dubbo-filter-validation/src/license/THIRD-PARTY.properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| # Generated by org.codehaus.mojo.license.AddThirdPartyMojo | ||
| #------------------------------------------------------------------------------- | ||
| # Already used licenses in project : | ||
| # - 3-Clause BSD License | ||
| # - Apache License, Version 2.0 | ||
| # - Apache License, version 2.0 | ||
| # - CDDL + GPLv2 with classpath exception | ||
| # - CDDL 1.1 | ||
| # - Eclipse Public License v2.0 | ||
| # - GPL2 w/ CPE | ||
| # - LGPL 2.1 | ||
| # - MPL 1.1 | ||
| # - The 3-Clause BSD License | ||
| # - The MIT License | ||
| #------------------------------------------------------------------------------- | ||
| # Please fill the missing licenses for dependencies : | ||
| # | ||
| # | ||
| #Sat Apr 27 21:20:46 CST 2019 | ||
| javax.xml.bind--jsr173_api--1.0=Apache License, Version 2.0 |
35 changes: 35 additions & 0 deletions
35
dubbo-registry/dubbo-registry-nacos/src/license/THIRD-PARTY.properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Generated by org.codehaus.mojo.license.AddThirdPartyMojo | ||
| #------------------------------------------------------------------------------- | ||
| # Already used licenses in project : | ||
| # - Apache 2.0 | ||
| # - Apache License, Version 2.0 | ||
| # - Apache License, version 2.0 | ||
| # - Apache Software License - Version 2.0 | ||
| # - BEA licensed | ||
| # - CDDL + GPLv2 with classpath exception | ||
| # - CDDL 1.1 | ||
| # - CDDL or GPLv2 with exceptions | ||
| # - COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 | ||
| # - Common Development and Distribution License | ||
| # - Eclipse Public License - Version 1.0 | ||
| # - Eclipse Public License - v 1.0 | ||
| # - Eclipse Public License v2.0 | ||
| # - GNU General Public License, Version 2 with the Classpath Exception | ||
| # - GNU Lesser General Public License | ||
| # - GNU Lesser General Public License (LGPL), Version 2.1 | ||
| # - GPL2 w/ CPE | ||
| # - JSR-000107 JCACHE 2.9 Public Review - Updated Specification | ||
| # License | ||
| # - LGPL 2.1 | ||
| # - MPL 1.1 | ||
| # - The 3-Clause BSD License | ||
| # - The MIT License | ||
| # - The New BSD License | ||
| # - WTFPL | ||
| #------------------------------------------------------------------------------- | ||
| # Please fill the missing licenses for dependencies : | ||
| # | ||
| # | ||
| #Sat Apr 27 21:34:44 CST 2019 | ||
| javax.xml.bind--jsr173_api--1.0=Apache License, Version 2.0 | ||
| net.jcip--jcip-annotations--1.0=BEA licensed |
21 changes: 21 additions & 0 deletions
21
dubbo-rpc/dubbo-rpc-jsonrpc/src/license/THIRD-PARTY.properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # Generated by org.codehaus.mojo.license.AddThirdPartyMojo | ||
| #------------------------------------------------------------------------------- | ||
| # Already used licenses in project : | ||
| # - 3-Clause BSD License | ||
| # - Apache License, Version 2.0 | ||
| # - Apache Software License - Version 2.0 | ||
| # - CDDL + GPLv2 with classpath exception | ||
| # - Eclipse Public License - Version 1.0 | ||
| # - Eclipse Public License v2.0 | ||
| # - LGPL 2.1 | ||
| # - MPL 1.1 | ||
| # - Public domain | ||
| # - The 3-Clause BSD License | ||
| # - The MIT License | ||
| # - The MIT License (MIT) | ||
| #------------------------------------------------------------------------------- | ||
| # Please fill the missing licenses for dependencies : | ||
| # | ||
| # | ||
| #Sat Apr 27 21:24:22 CST 2019 | ||
| javax.portlet--portlet-api--2.0=Apache License, Version 2.0 |
33 changes: 33 additions & 0 deletions
33
dubbo-rpc/dubbo-rpc-rest/src/license/THIRD-PARTY.properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| # Generated by org.codehaus.mojo.license.AddThirdPartyMojo | ||
| #------------------------------------------------------------------------------- | ||
| # Already used licenses in project : | ||
| # - 3-Clause BSD License | ||
| # - Apache 2.0 | ||
| # - Apache License, Version 2.0 | ||
| # - Apache License, version 2.0 | ||
| # - Apache Software License - Version 2.0 | ||
| # - CDDL + GPLv2 with classpath exception | ||
| # - CDDL 1.1 | ||
| # - CDDL or GPLv2 with exceptions | ||
| # - COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 | ||
| # - Common Development and Distribution License | ||
| # - Eclipse Public License - Version 1.0 | ||
| # - Eclipse Public License v2.0 | ||
| # - GNU General Public License, Version 2 with the Classpath Exception | ||
| # - GNU Lesser General Public License (LGPL), Version 2.1 | ||
| # - GPL2 w/ CPE | ||
| # - JSR-000107 JCACHE 2.9 Public Review - Updated Specification | ||
| # License | ||
| # - LGPL 2.1 | ||
| # - MPL 1.1 | ||
| # - The 3-Clause BSD License | ||
| # - The MIT License | ||
| # - The New BSD License | ||
| # - WTFPL | ||
| #------------------------------------------------------------------------------- | ||
| # Please fill the missing licenses for dependencies : | ||
| # | ||
| # | ||
| #Sat Apr 27 21:31:46 CST 2019 | ||
| javax.xml.bind--jsr173_api--1.0=Apache License, Version 2.0 | ||
| net.jcip--jcip-annotations--1.0=BEA licensed |
24 changes: 24 additions & 0 deletions
24
dubbo-rpc/dubbo-rpc-webservice/src/license/THIRD-PARTY.properties
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| # Generated by org.codehaus.mojo.license.AddThirdPartyMojo | ||
| #------------------------------------------------------------------------------- | ||
| # Already used licenses in project : | ||
| # - 3-Clause BSD License | ||
| # - Apache License, Version 2.0 | ||
| # - Apache Software License - Version 2.0 | ||
| # - CDDL + GPLv2 with classpath exception | ||
| # - CDDL 1.1 | ||
| # - CDDL/GPLv2+CE | ||
| # - CPL | ||
| # - Eclipse Public License - Version 1.0 | ||
| # - Eclipse Public License v2.0 | ||
| # - GPL2 w/ CPE | ||
| # - LGPL 2.1 | ||
| # - MPL 1.1 | ||
| # - The 3-Clause BSD License | ||
| # - The BSD License | ||
| # - The MIT License | ||
| #------------------------------------------------------------------------------- | ||
| # Please fill the missing licenses for dependencies : | ||
| # | ||
| # | ||
| #Sat Apr 27 21:26:46 CST 2019 | ||
| javax.xml.bind--jsr173_api--1.0=Apache License, Version 2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| #!/bin/bash | ||
|
|
||
| APPEND_ARG="" | ||
| FOLDER="./" | ||
| LINE_FLAG="==============================================" | ||
|
|
||
| if [ -n "$1" ]; then | ||
| echo "checking module $1" | ||
| APPEND_ARG="-f $1" | ||
| FOLDER="$1" | ||
| else | ||
| echo "checking whole project" | ||
| fi | ||
|
|
||
| echo "Running command: ./mvnw clean package -DskipTests=true -PlicenseCheck $APPEND_ARG" | ||
|
|
||
| ./mvnw clean package -DskipTests=true -PlicenseCheck $APPEND_ARG | ||
|
|
||
| status=$? | ||
| if [ $status -eq 0 ]; then | ||
| echo "mvn command exec success" | ||
| else | ||
| echo "mvn command exec fail" | ||
| exit 1 | ||
| fi | ||
|
|
||
| rm -rf ./license-list.txt | ||
| LICENSE_FILES=`find $FOLDER -type f -name "THIRD-PARTY.txt"|grep generated-sources` | ||
|
|
||
| echo "Find license files: \n $LICENSE_FILES" | ||
|
|
||
| for i in $LICENSE_FILES | ||
| do | ||
| echo "$LINE_FLAG" >> ./license-list.txt | ||
| echo $i >> ./license-list.txt | ||
| cat $i >> ./license-list.txt | ||
| done | ||
|
|
||
| echo "license files generated at ./license-list.txt" | ||
|
|
||
| cat ./license-list.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.