Skip to content
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ Thumbs.db
*.orig

# flatten ignore
.flattened-pom.xml
.flattened-pom.xml

# license check result
license-list.txt
34 changes: 34 additions & 0 deletions dubbo-compatible/src/license/THIRD-PARTY.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Generated by org.codehaus.mojo.license.AddThirdPartyMojo
Comment thread
ralf0131 marked this conversation as resolved.
Outdated
#-------------------------------------------------------------------------------
# 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
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
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 dubbo-rpc/dubbo-rpc-jsonrpc/src/license/THIRD-PARTY.properties
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 dubbo-rpc/dubbo-rpc-rest/src/license/THIRD-PARTY.properties
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 dubbo-rpc/dubbo-rpc-webservice/src/license/THIRD-PARTY.properties
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
41 changes: 41 additions & 0 deletions licenseCheck.sh
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
35 changes: 35 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,41 @@
</plugins>
</build>
</profile>
<profile>
<id>licenseCheck</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>1.20</version>
<executions>
<execution>
<id>license-check</id>
<phase>generate-sources</phase>
<goals>
<goal>add-third-party</goal>
</goals>
<configuration>
<includeOptional>false</includeOptional>
<useMissingFile>true</useMissingFile>
<failOnMissing>true</failOnMissing>
<licenseMerges>
<licenseMerge>Apache License, Version 2.0|The Apache Software License, Version
2.0|ASF 2.0|Apache 2|Apache License 2.0|The Apache License, Version 2.0|The Apache Software License, Version 2.0
</licenseMerge>
<licenseMerge>The MIT License|MIT License</licenseMerge>
<licenseMerge>The 3-Clause BSD License|New BSD License|3-Clause BSD
License|BSD|3-Clause BSD License
</licenseMerge>
</licenseMerges>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
Expand Down