You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/02/08 11:20:36 UTC

[GitHub] [incubator-seatunnel] asdf2014 opened a new pull request #1210: [Feature][CI] Automatically generate LICENSE

asdf2014 opened a new pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210


   <!--
   
   Thank you for contributing to SeaTunnel! Please make sure that your code changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   Feel free to ping committers for the review!
   
   ## Contribution Checklist
   
     - Make sure that the pull request corresponds to a [GITHUB issue](https://github.com/apache/incubator-seatunnel/issues).
   
     - Name the pull request in the form "[Feature] [component] Title of the pull request", where *Feature* can be replaced by `Hotfix`, `Bug`, etc.
   
     - Minor fixes should be named following this pattern: `[hotfix] [docs] Fix typo in README.md doc`.
   
   -->
   
   ## Purpose of this pull request
   
   <!-- Describe the purpose of this pull request. For example: This pull request adds checkstyle plugin.-->
   
   Fixes #1209
   
   ## Check list
   
   * [x] Code changed are covered with tests, or it does not need tests for reason:
   * [x] If any new Jar binary package adding in you PR, please add License Notice according
     [New License Guide](https://github.com/apache/incubator-seatunnel/blob/dev/docs/en/developement/NewLicenseGuide.md)
   * [x] If necessary, please update the documentation to describe the new feature. https://github.com/apache/incubator-seatunnel/tree/dev/docs
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r809881449



##########
File path: bin/license.py
##########
@@ -0,0 +1,381 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if sys.version_info.major < 3:
+    print('At least Python3 is required!')
+    print('Please refer to the https://www.python.org/downloads/ documentation if you do not have a right Python env.')
+    exit(-1)
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 3!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"
+}
+licenses_describe_map = {
+    "Apache 2.0 License":
+        """The following components are provided under the Apache License. See project link for details.
+The text of each license is the standard Apache 2.0 license.
+""",
+    "MIT License": """The following components are provided under the MIT License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "BSD License": """The following components are provided under a BSD license. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CC0-1.0 License": """The following components are provided under the CC0-1.0 License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CDDL License": """The following components are provided under the CDDL License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Eclipse Public License": """The following components are provided under the Eclipse Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Public Domain License": """The following components are provided under the Public Domain License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Mozilla Public License Version 2.0": """The following components are provided under the Mozilla Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Unicode License": """The following components are provided under the Unicode License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Go License": """The following components are provided under the Go License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Other License": """The following components are provided under some minority Licenses. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.

Review comment:
       BTW, it would not be added to LICENSE file since all of unknown dependencies have been taken care.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] kezhenxu94 commented on pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#issuecomment-1053828145


   Please resolve conflicts


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r817636837



##########
File path: pom.xml
##########
@@ -789,6 +790,51 @@
                     <artifactId>build-helper-maven-plugin</artifactId>
                     <version>${maven-helper-plugin.version}</version>
                 </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>license-maven-plugin</artifactId>
+                    <version>${maven-license-maven-plugin}</version>
+                    <executions>
+                        <execution>
+                            <id>download</id>
+                            <goals>
+                                <goal>download-licenses</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                    <configuration>
+                        <outputDirectory>${project.basedir}/seatunnel-dist/target/</outputDirectory>
+                        <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
+                        <sortArtifactByName>true</sortArtifactByName>
+                        <useMissingFile>false</useMissingFile>
+                        <addJavaLicenseAfterPackage>true</addJavaLicenseAfterPackage>
+                    </configuration>
+                </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>exec-maven-plugin</artifactId>
+                    <version>${exec-maven-plugin.version}</version>
+                    <executions>
+                        <execution>
+                            <id>license</id>
+                            <phase>package</phase>
+                            <goals>
+                                <goal>exec</goal>
+                            </goals>
+                            <configuration>

Review comment:
       @zhongjiajie @kezhenxu94 Since we are using Github Action to run the Python script instead of exec maven plugin, which is not necessary anymore, so I have removed the new exec maven plugin. PTAL the latest commit, thanks.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r803734280



##########
File path: pom.xml
##########
@@ -789,6 +790,51 @@
                     <artifactId>build-helper-maven-plugin</artifactId>
                     <version>${maven-helper-plugin.version}</version>
                 </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>license-maven-plugin</artifactId>
+                    <version>${maven-license-maven-plugin}</version>
+                    <executions>
+                        <execution>
+                            <id>download</id>
+                            <goals>
+                                <goal>download-licenses</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                    <configuration>
+                        <outputDirectory>${project.basedir}/seatunnel-dist/target/</outputDirectory>
+                        <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
+                        <sortArtifactByName>true</sortArtifactByName>
+                        <useMissingFile>false</useMissingFile>
+                        <addJavaLicenseAfterPackage>true</addJavaLicenseAfterPackage>
+                    </configuration>
+                </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>exec-maven-plugin</artifactId>
+                    <version>${exec-maven-plugin.version}</version>
+                    <executions>
+                        <execution>
+                            <id>license</id>
+                            <phase>package</phase>
+                            <goals>
+                                <goal>exec</goal>
+                            </goals>
+                            <configuration>

Review comment:
       Hi @kezhenxu94, I rewrote the script, and now the script completely uses Python's native APIs, does not rely on any third-party libraries, and can run in the native Python environment




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r814911866



##########
File path: pom.xml
##########
@@ -789,6 +790,51 @@
                     <artifactId>build-helper-maven-plugin</artifactId>
                     <version>${maven-helper-plugin.version}</version>
                 </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>license-maven-plugin</artifactId>
+                    <version>${maven-license-maven-plugin}</version>
+                    <executions>
+                        <execution>
+                            <id>download</id>
+                            <goals>
+                                <goal>download-licenses</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                    <configuration>
+                        <outputDirectory>${project.basedir}/seatunnel-dist/target/</outputDirectory>
+                        <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
+                        <sortArtifactByName>true</sortArtifactByName>
+                        <useMissingFile>false</useMissingFile>
+                        <addJavaLicenseAfterPackage>true</addJavaLicenseAfterPackage>
+                    </configuration>
+                </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>exec-maven-plugin</artifactId>
+                    <version>${exec-maven-plugin.version}</version>
+                    <executions>
+                        <execution>
+                            <id>license</id>
+                            <phase>package</phase>
+                            <goals>
+                                <goal>exec</goal>
+                            </goals>
+                            <configuration>

Review comment:
       @CalvinKirs Sure, the latest version has supported the Github Action to auto check, PTAL




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r811959103



##########
File path: bin/license.py
##########
@@ -0,0 +1,385 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if sys.version_info.major < 3:
+    print('At least Python3 is required!')
+    print('Please refer to the https://www.python.org/downloads/ documentation if you do not have a right Python env.')
+    exit(-1)
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 3!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {

Review comment:
       These dependencies are unknown for this script, right 😅 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r809826449



##########
File path: tools/dependencies/known-dependencies.txt
##########
@@ -214,13 +217,13 @@ hadoop-yarn-server-common-2.6.5.jar
 hbase-annotations-2.0.0.jar
 hbase-client-2.0.0.jar
 hbase-client-2.1.0.jar
-hbase-common-2.0.0.jar
 hbase-common-2.0.0-tests.jar
+hbase-common-2.0.0.jar
 hbase-common-2.1.0.jar
-hbase-hadoop2-compat-2.0.0.jar
-hbase-hadoop2-compat-2.1.0.jar
 hbase-hadoop-compat-2.0.0.jar
 hbase-hadoop-compat-2.1.0.jar
+hbase-hadoop2-compat-2.0.0.jar

Review comment:
       Later, I may raise another PR to ensure the items in `known-dependencies.txt` is sorted. What do you think




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] kezhenxu94 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r809883858



##########
File path: bin/license.py
##########
@@ -0,0 +1,381 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if sys.version_info.major < 3:
+    print('At least Python3 is required!')
+    print('Please refer to the https://www.python.org/downloads/ documentation if you do not have a right Python env.')
+    exit(-1)
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 3!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"
+}
+licenses_describe_map = {
+    "Apache 2.0 License":
+        """The following components are provided under the Apache License. See project link for details.
+The text of each license is the standard Apache 2.0 license.
+""",
+    "MIT License": """The following components are provided under the MIT License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "BSD License": """The following components are provided under a BSD license. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CC0-1.0 License": """The following components are provided under the CC0-1.0 License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CDDL License": """The following components are provided under the CDDL License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Eclipse Public License": """The following components are provided under the Eclipse Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Public Domain License": """The following components are provided under the Public Domain License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Mozilla Public License Version 2.0": """The following components are provided under the Mozilla Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Unicode License": """The following components are provided under the Unicode License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Go License": """The following components are provided under the Go License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Other License": """The following components are provided under some minority Licenses. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.

Review comment:
       All future unexpected licenses should be taken care by human beings and categorize explicitly, I don't see there is any point to keep this, people may just run this script and commit the `Other License`, so if there is any unknown license, I'd rather just fail the command and abort, so that people can identify it manually




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] CalvinKirs commented on pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#issuecomment-1058039416


   https://github.com/apache/incubator-seatunnel/pull/1387#pullrequestreview-898903805


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] CalvinKirs commented on pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#issuecomment-1058038507


   ![image](https://user-images.githubusercontent.com/16631152/156573357-83358b9d-47b1-4d9b-9f01-b1bc9e56f53f.png)
   Is the relevant license deleted by mistake? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#issuecomment-1058075110


   You can refer to https://github.com/apache/incubator-seatunnel/pull/1372#discussion_r818375324


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r806737627



##########
File path: bin/license.py
##########
@@ -0,0 +1,364 @@
+#!/usr/bin/env python3
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import sys
+
+if len(sys.argv) - 1 != 2:
+    print("The length of arguments should be 2!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"

Review comment:
       Hi @CalvinKirs, regarding unknown dependencies, the license information of them cannot be found in the maven central repository. So I downloaded the Jar package manually, and then unzipped it and checked the LICENSE file to confirm. :smile:




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] zhongjiajie commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
zhongjiajie commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r807495733



##########
File path: bin/license.py
##########
@@ -0,0 +1,364 @@
+#!/usr/bin/env python3
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import sys
+
+if len(sys.argv) - 1 != 2:
+    print("The length of arguments should be 2!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"

Review comment:
       @asdf2014  So what if we have now unknown dependencies, we have to add them to the script by hand?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] kezhenxu94 commented on a change in pull request #1210: [Feature][CI] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r801532476



##########
File path: pom.xml
##########
@@ -789,6 +790,51 @@
                     <artifactId>build-helper-maven-plugin</artifactId>
                     <version>${maven-helper-plugin.version}</version>
                 </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>license-maven-plugin</artifactId>
+                    <version>${maven-license-maven-plugin}</version>
+                    <executions>
+                        <execution>
+                            <id>download</id>
+                            <goals>
+                                <goal>download-licenses</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                    <configuration>
+                        <outputDirectory>${project.basedir}/seatunnel-dist/target/</outputDirectory>
+                        <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
+                        <sortArtifactByName>true</sortArtifactByName>
+                        <useMissingFile>false</useMissingFile>
+                        <addJavaLicenseAfterPackage>true</addJavaLicenseAfterPackage>
+                    </configuration>
+                </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>exec-maven-plugin</artifactId>
+                    <version>${exec-maven-plugin.version}</version>
+                    <executions>
+                        <execution>
+                            <id>license</id>
+                            <phase>package</phase>
+                            <goals>
+                                <goal>exec</goal>
+                            </goals>
+                            <configuration>

Review comment:
       I suggest not to execute this goal by default, for some reasons:
   
   - end users don't need to run this python script if they only want to download the source codes and build the package themselves
   - the Python script will fail if the users don't have a correct Python version and dependency modules installed, the script is not vanilla Python script right?

##########
File path: seatunnel-dist/release-docs/LICENSE
##########
@@ -937,13 +819,34 @@ The text of each license is also included at licenses/LICENSE-[project].txt.
      (Mozilla Public License Version 2.0) jamon-runtime (org.jamon:jamon-runtime:2.4.1 - http://www.jamon.org/jamon-java-parent/jamon-runtime/)
      (Mozilla Public License, Version 2.0) Mozilla Rhino (org.mozilla:rhino:1.7.11 - https://developer.mozilla.org/en/Rhino)
 
+
 ========================================================================
 Unicode License
 ========================================================================
 
 The following components are provided under the Unicode License. See project link for details.
 The text of each license is also included at licenses/LICENSE-[project].txt.
 
-     (Unicode/ICU License) ICU4J (com.ibm.icu:icu4j:60.2 - http://icu-project.org/)
      (Unicode/ICU License) ICU4J Charset Provider (com.ibm.icu:icu4j-charset:60.2 - http://icu-project.org/)
      (Unicode/ICU License) ICU4J Locale Service Provider (com.ibm.icu:icu4j-localespi:60.2 - http://icu-project.org/)
+
+
+========================================================================
+Other License
+========================================================================
+
+The following components are provided under some minority Licenses. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+
+     (Unknown license) Antlr 3.4 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)
+     (Unknown license) commons-beanutils (commons-beanutils:commons-beanutils:1.7.0 - no url defined)
+     (Unknown license) commons-pool (commons-pool:commons-pool:1.5.4 - no url defined)
+     (Unknown license) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)
+     (Unknown license) jsp-api (javax.servlet.jsp:jsp-api:2.1 - no url defined)
+     (APL2) msgpack-core (org.msgpack:msgpack-core:0.9.0 - https://msgpack.org/)
+     (Unknown license) oro (oro:oro:2.0.8 - no url defined)
+     (The Go license) re2j (com.google.re2j:re2j:1.1 - http://github.com/google/re2j)
+     (Unknown license) servlet-api (javax.servlet:servlet-api:2.5 - no url defined)
+     (Unknown license) sigar (org.hyperic:sigar:1.6.5.132 - no url defined)

Review comment:
       These should be recognized by human beings, `Other License` is a potential license risk to me, as they are `Unknown`




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r809886814



##########
File path: bin/license.py
##########
@@ -0,0 +1,381 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if sys.version_info.major < 3:
+    print('At least Python3 is required!')
+    print('Please refer to the https://www.python.org/downloads/ documentation if you do not have a right Python env.')
+    exit(-1)
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 3!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"
+}
+licenses_describe_map = {
+    "Apache 2.0 License":
+        """The following components are provided under the Apache License. See project link for details.
+The text of each license is the standard Apache 2.0 license.
+""",
+    "MIT License": """The following components are provided under the MIT License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "BSD License": """The following components are provided under a BSD license. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CC0-1.0 License": """The following components are provided under the CC0-1.0 License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CDDL License": """The following components are provided under the CDDL License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Eclipse Public License": """The following components are provided under the Eclipse Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Public Domain License": """The following components are provided under the Public Domain License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Mozilla Public License Version 2.0": """The following components are provided under the Mozilla Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Unicode License": """The following components are provided under the Unicode License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Go License": """The following components are provided under the Go License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Other License": """The following components are provided under some minority Licenses. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.

Review comment:
       @kezhenxu94 SGTM, I will add a fast-fail logic.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] zhongjiajie commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
zhongjiajie commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r809758462



##########
File path: bin/license.py
##########
@@ -0,0 +1,376 @@
+#!/usr/bin/env python3

Review comment:
       Do not get me wrong. I do not mean we should support version 2
   It is not related to version 2 or version 3, what if user with `python3` in env, just `python3.6` or `python3.10` but with a soft link `python -> python3.6`?
   I think we should use the exactly word `python`, instead of pointing `python3`
   
   and then check the version in laster




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] CalvinKirs merged pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
CalvinKirs merged pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] zhongjiajie commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
zhongjiajie commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r816699022



##########
File path: bin/license.py
##########
@@ -0,0 +1,376 @@
+#!/usr/bin/env python3
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 2!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"
+}
+licenses_describe_map = {
+    "Apache 2.0 License":
+        """The following components are provided under the Apache License. See project link for details.
+The text of each license is the standard Apache 2.0 license.
+""",
+    "MIT License": """The following components are provided under the MIT License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "BSD License": """The following components are provided under a BSD license. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CC0-1.0 License": """The following components are provided under the CC0-1.0 License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CDDL License": """The following components are provided under the CDDL License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Eclipse Public License": """The following components are provided under the Eclipse Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Public Domain License": """The following components are provided under the Public Domain License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Mozilla Public License Version 2.0": """The following components are provided under the Mozilla Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Unicode License": """The following components are provided under the Unicode License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Go License": """The following components are provided under the Go License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Other License": """The following components are provided under some minority Licenses. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+"""
+}
+licenses_map = {
+    "Apache 2.0 License": [],
+    "MIT License": [],
+    "BSD License": [],
+    "CC0-1.0 License": [],
+    "CDDL License": [],
+    "Eclipse Public License": [],
+    "Public Domain License": [],
+    "Mozilla Public License Version 2.0": [],
+    "Unicode License": [],
+    "Go License": [],
+    "Other License": []
+}
+
+for _ in licenses:

Review comment:
       > I think `_` is usually used for unused variables, why do you think using `_` is easier maintain?
   
   Yeah, the best practices is for unused variables or for list/tuple comprehension




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] CalvinKirs commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r811951696



##########
File path: seatunnel-dist/release-docs/LICENSE
##########
@@ -211,115 +211,163 @@ licenses.
 
 
 ========================================================================
-Apache 2.0 licenses
+Apache 2.0 License
 ========================================================================
 
 The following components are provided under the Apache License. See project link for details.
 The text of each license is the standard Apache 2.0 license.
 
-     (Apache 2) org.roaringbitmap:RoaringBitmap (org.roaringbitmap:RoaringBitmap:0.9.0 - https://github.com/RoaringBitmap/RoaringBitmap)
-     (Apache 2) org.roaringbitmap:shims (org.roaringbitmap:shims:0.9.0 - https://github.com/RoaringBitmap/RoaringBitmap)
-     (The Apache Software License, Version 2.0) SparseBitSet (com.zaxxer:SparseBitSet:1.2 - https://github.com/brettwooldridge/SparseBitSet)
-     (The Apache Software License, Version 2.0) ASM based accessors helper used by json-smart (net.minidev:accessors-smart:1.2 - http://www.minidev.net/)
      (The Apache Software License, Version 2.0) Aggregate Designer Algorithm (net.hydromatic:aggdesigner-algorithm:6.0 - http://github.com/julianhyde/aggdesigner/aggdesigner-algorithm)
      (The Apache Software License, Version 2.0) aggs-matrix-stats (org.elasticsearch.plugin:aggs-matrix-stats-client:6.3.1 - https://github.com/elastic/elasticsearch)
      (Apache License 2.0) aircompressor (io.airlift:aircompressor:0.10 - http://github.com/airlift/aircompressor)
      (Apache License 2.0) airline (io.airlift:airline:0.7 - https://github.com/airlift/airline)
-     (The Apache Software License, Version 2.0) IntelliJ IDEA Annotations (org.jetbrains:annotations:13.0 - http://www.jetbrains.org)
-     (The Apache License, Version 2.0) org.apiguardian:apiguardian-api (org.apiguardian:apiguardian-api:1.1.0 - https://github.com/apiguardian-team/apiguardian)
-     (The Apache Software License, Version 2.0) flink-shaded-asm-7 (org.apache.flink:flink-shaded-asm-7:7.1-13.0 - http://flink.apache.org/flink-shaded-asm-7)
-     (Apache License 2.0) Asynchronous Http Client (org.asynchttpclient:async-http-client:2.5.3 - http://github.com/AsyncHttpClient/async-http-client/async-http-client)
-     (Apache License 2.0) Asynchronous Http Client Netty Utils (org.asynchttpclient:async-http-client-netty-utils:2.5.3 - http://github.com/AsyncHttpClient/async-http-client/async-http-client-netty-utils)
-     (Apache License, Version 2.0) Apache Yetus - Audience Annotations (org.apache.yetus:audience-annotations:0.5.0 - https://yetus.apache.org/audience-annotations)
-     (Apache License, Version 2.0) Apache Yetus - Audience Annotations (org.apache.yetus:audience-annotations:0.7.0 - https://yetus.apache.org/audience-annotations)
-     (The Apache License, Version 2.0) Apache Calcite Avatica (org.apache.calcite.avatica:avatica-core:1.20.0 - https://calcite.apache.org/avatica)
+     (Apache License, Version 2.0) akka-actor (com.typesafe.akka:akka-actor_2.11:2.5.21 - http://akka.io/)
+     (Apache License, Version 2.0) akka-protobuf (com.typesafe.akka:akka-protobuf_2.11:2.5.21 - http://akka.io/)
+     (Apache License, Version 2.0) akka-slf4j (com.typesafe.akka:akka-slf4j_2.11:2.5.21 - http://akka.io/)
+     (Apache License, Version 2.0) akka-stream (com.typesafe.akka:akka-stream_2.11:2.5.21 - http://akka.io/)
+     (Apache License, Version 2.0) An open source Java toolkit for Amazon S3 (net.java.dev.jets3t:jets3t:0.9.0 - http://www.jets3t.org)
+     (The Apache Software License, Version 2.0) Apache Avro IPC (org.apache.avro:avro-ipc:1.7.7 - http://avro.apache.org)
+     (The Apache Software License, Version 2.0) Apache Avro Mapred API (org.apache.avro:avro-mapred:1.8.2 - http://avro.apache.org/avro-mapred)
+     (The Apache License, Version 2.0) Apache Calcite Avatica (org.apache.calcite.avatica:avatica-core:1.17.0 - https://calcite.apache.org/avatica)
      (The Apache License, Version 2.0) Apache Calcite Avatica Metrics (org.apache.calcite.avatica:avatica-metrics:1.20.0 - https://calcite.apache.org/avatica)
+     (Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.9.3 - https://commons.apache.org/proper/commons-beanutils/)
+     (Apache License, Version 2.0) Apache Commons CLI (commons-cli:commons-cli:1.3.1 - http://commons.apache.org/proper/commons-cli/)
+     (Apache License, Version 2.0) Apache Commons Collections (commons-collections:commons-collections:3.2.2 - http://commons.apache.org/collections/)

Review comment:
       Why do we modify so much meaningless content?
   Such changes, especially license changes, are a challenge for any reviewer.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] CalvinKirs commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r811949408



##########
File path: bin/license.py
##########
@@ -0,0 +1,385 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if sys.version_info.major < 3:
+    print('At least Python3 is required!')
+    print('Please refer to the https://www.python.org/downloads/ documentation if you do not have a right Python env.')
+    exit(-1)
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 3!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {

Review comment:
       `Unknow` This is not recommended to use this word, it is inaccurate and even prone to misunderstanding.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] CalvinKirs commented on pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#issuecomment-1047800436


   What did I miss. I didn't find any running of this script in CIJob.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r809853671



##########
File path: bin/license.py
##########
@@ -0,0 +1,381 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if sys.version_info.major < 3:
+    print('At least Python3 is required!')
+    print('Please refer to the https://www.python.org/downloads/ documentation if you do not have a right Python env.')
+    exit(-1)
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 3!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"
+}
+licenses_describe_map = {
+    "Apache 2.0 License":
+        """The following components are provided under the Apache License. See project link for details.
+The text of each license is the standard Apache 2.0 license.
+""",
+    "MIT License": """The following components are provided under the MIT License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "BSD License": """The following components are provided under a BSD license. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CC0-1.0 License": """The following components are provided under the CC0-1.0 License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CDDL License": """The following components are provided under the CDDL License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Eclipse Public License": """The following components are provided under the Eclipse Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Public Domain License": """The following components are provided under the Public Domain License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Mozilla Public License Version 2.0": """The following components are provided under the Mozilla Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Unicode License": """The following components are provided under the Unicode License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Go License": """The following components are provided under the Go License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Other License": """The following components are provided under some minority Licenses. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+"""
+}
+licenses_map = {
+    "Apache 2.0 License": [],
+    "MIT License": [],
+    "BSD License": [],
+    "CC0-1.0 License": [],
+    "CDDL License": [],
+    "Eclipse Public License": [],
+    "Public Domain License": [],
+    "Mozilla Public License Version 2.0": [],
+    "Unicode License": [],
+    "Go License": [],
+    "Other License": []

Review comment:
       Same as above




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on pull request #1210: [Feature][CI] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#issuecomment-1032527010


   Hi @CalvinKirs, thanks for your comment. Yes, the license-maven-plugin plugin can exclude unknown license, but I think we shouldn't ignore them, we should clean up our dependencies tree to avoid unknown licenses.
   
   > This may be more suitable as a check, but it is not suitable for CI to automatically add.
   
   Sure, we can disable this generator by default, and add a check for the LICENSE. Or, we can automatically modify the LICENSE for each PRs that have changed the dependency tree, after the PR created. What do you think


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] CalvinKirs commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r806492044



##########
File path: seatunnel-dist/release-docs/LICENSE
##########
@@ -590,161 +524,162 @@ The text of each license is the standard Apache 2.0 license.
      (Apache 2) Lucene Spatial Extras (org.apache.lucene:lucene-spatial-extras:7.3.1 - http://lucene.apache.org/lucene-parent/lucene-spatial-extras)
      (Apache 2) Lucene Suggest (org.apache.lucene:lucene-suggest:7.3.1 - http://lucene.apache.org/lucene-parent/lucene-suggest)
      (The Apache Software License, Version 2.0) LZ4 and xxHash (net.jpountz.lz4:lz4:1.3.0 - https://github.com/jpountz/lz4-java)
-     (The Apache Software License, Version 2.0) LZ4 and xxHash (org.lz4:lz4-java:1.4.0 - https://github.com/lz4/lz4-java)
-     (The Apache Software License, Version 2.0) LZ4 and xxHash (org.lz4:lz4-java:1.4.1 - https://github.com/lz4/lz4-java)
-     (The Apache Software License, Version 2.0) LZ4 and xxHash (org.lz4:lz4-java:1.6.0 - https://github.com/lz4/lz4-java)
-     (The Apache Software License, Version 2.0) LZ4 and xxHash (org.lz4:lz4-java:1.7.1 - https://github.com/lz4/lz4-java)
      (The Apache Software License, Version 2.0) Maven Aether Provider (org.apache.maven:maven-aether-provider:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-aether-provider)
      (Apache License, Version 2.0) Maven Artifact (org.apache.maven:maven-artifact:3.6.0 - https://maven.apache.org/ref/3.6.0/maven-artifact/)
-     (The Apache Software License, Version 2.0) Maven Model Builder (org.apache.maven:maven-model-builder:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-model-builder)
      (The Apache Software License, Version 2.0) Maven Model (org.apache.maven:maven-model:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-model)
+     (The Apache Software License, Version 2.0) Maven Model Builder (org.apache.maven:maven-model-builder:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-model-builder)
      (The Apache Software License, Version 2.0) Maven Repository Metadata Model (org.apache.maven:maven-repository-metadata:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-repository-metadata)
-     (The Apache Software License, Version 2.0) Maven Settings Builder (org.apache.maven:maven-settings-builder:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-settings-builder)
      (The Apache Software License, Version 2.0) Maven Settings (org.apache.maven:maven-settings:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-settings)
-     (Apache License, Version 2.0) com.yahoo.datasketches:memory (com.yahoo.datasketches:memory:0.9.0 - https://datasketches.github.io/memory/)
+     (The Apache Software License, Version 2.0) Maven Settings Builder (org.apache.maven:maven-settings-builder:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-settings-builder)
      (Apache License 2.0) Metrics Core (io.dropwizard.metrics:metrics-core:3.1.5 - http://metrics.codahale.com/metrics-core/)
-     (Apache License 2.0) Metrics Core (io.dropwizard.metrics:metrics-core:3.2.1 - http://metrics.codahale.com/metrics-core/)
-     (Apache License 2.0) Metrics Core (io.dropwizard.metrics:metrics-core:4.0.0 - http://metrics.dropwizard.io/metrics-core)
-     (The Apache Software License, Version 2.0) MongoDB Java Driver (org.mongodb:mongo-java-driver:3.4.2 - http://www.mongodb.org)
      (Apache-2.0) mongo-spark-connector (org.mongodb.spark:mongo-spark-connector_2.11:2.2.0 - http://github.com/mongo-spark)
+     (The Apache Software License, Version 2.0) MongoDB Java Driver (org.mongodb:mongo-java-driver:3.4.2 - http://www.mongodb.org)
      (Apache 2.0) Moshi (com.squareup.moshi:moshi:1.8.0 - https://github.com/square/moshi/moshi)
+     (APL2) msgpack-core (org.msgpack:msgpack-core:0.9.0 - https://msgpack.org/)
+     (Apache License, Version 2) Neo4j Java Driver (org.neo4j.driver:neo4j-java-driver:4.3.4 - https://github.com/neo4j/neo4j-java-driver/neo4j-java-driver)
      (The Apache Software License, Version 2.0) neo4j-connector-apache-spark-2.4.8 (org.neo4j:neo4j-connector-apache-spark_2.11:4.1.0_for_spark_2.4 - https://github.com/neo4j-contrib/neo4j-spark-connector/neo4j-connector-apache-spark_2.12)
      (The Apache Software License, Version 2.0) neo4j-connector-apache-spark-common (org.neo4j:neo4j-connector-apache-spark_2.12_common:4.1.0 - https://github.com/neo4j-contrib/neo4j-spark-connector/neo4j-connector-apache-spark_2.12_common)
-     (The Apache Software License, Version 2.0) Neo4j Cypher DSL (Core) (org.neo4j:neo4j-cypher-dsl:2020.1.4 - https://neo4j-contrib.github.io/cypher-dsl/neo4j-cypher-dsl)
-     (Apache License, Version 2) Neo4j Java Driver (org.neo4j.driver:neo4j-java-driver:4.3.4 - https://github.com/neo4j/neo4j-java-driver/neo4j-java-driver)
+     (The Apache License, Version 2.0) net.thisptr:jackson-jq (net.thisptr:jackson-jq:0.0.10 - https://github.com/eiiches/jackson-jq/jackson-jq)
      (Apache License, Version 2.0) Netty (io.netty:netty:3.10.5.Final - http://netty.io/)
-     (Apache License, Version 2.0) Netty (io.netty:netty:3.10.6.Final - http://netty.io/)
-     (Apache License, Version 2.0) Netty (io.netty:netty:3.9.9.Final - http://netty.io/)
+     (Apache 2) Netty Reactive Streams Implementation (com.typesafe.netty:netty-reactive-streams:2.0.0 - https://github.com/playframework/netty-reactive-streams/netty-reactive-streams)
      (Apache License, Version 2.0) Netty/All-in-One (io.netty:netty-all:4.0.23.Final - http://netty.io/netty-all/)
-     (Apache License, Version 2.0) Netty/All-in-One (io.netty:netty-all:4.1.17.Final - http://netty.io/netty-all/)
      (Apache License, Version 2.0) Netty/Buffer (io.netty:netty-buffer:4.1.16.Final - http://netty.io/netty-buffer/)
-     (Apache License, Version 2.0) Netty/Buffer (io.netty:netty-buffer:4.1.63.Final - https://netty.io/netty-buffer/)
      (Apache License, Version 2.0) Netty/Codec (io.netty:netty-codec:4.1.16.Final - http://netty.io/netty-codec/)
-     (Apache License, Version 2.0) Netty/Codec/HTTP (io.netty:netty-codec-http:4.1.16.Final - http://netty.io/netty-codec-http/)
-     (Apache License, Version 2.0) Netty/Codec/HTTP (io.netty:netty-codec-http:4.1.63.Final - https://netty.io/netty-codec-http/)
-     (Apache License, Version 2.0) Netty/Codec (io.netty:netty-codec:4.1.63.Final - https://netty.io/netty-codec/)
      (Apache License, Version 2.0) Netty/Codec/DNS (io.netty:netty-codec-dns:4.1.29.Final - http://netty.io/netty-codec-dns/)
+     (Apache License, Version 2.0) Netty/Codec/HTTP (io.netty:netty-codec-http:4.1.16.Final - http://netty.io/netty-codec-http/)
      (Apache License, Version 2.0) Netty/Codec/Socks (io.netty:netty-codec-socks:4.1.29.Final - http://netty.io/netty-codec-socks/)
      (Apache License, Version 2.0) Netty/Common (io.netty:netty-common:4.1.16.Final - http://netty.io/netty-common/)
-     (Apache License, Version 2.0) Netty/Common (io.netty:netty-common:4.1.63.Final - https://netty.io/netty-common/)
      (Apache License, Version 2.0) Netty/Handler (io.netty:netty-handler:4.1.16.Final - http://netty.io/netty-handler/)
-     (Apache License, Version 2.0) Netty/Handler (io.netty:netty-handler:4.1.63.Final - https://netty.io/netty-handler/)
      (Apache License, Version 2.0) Netty/Handler/Proxy (io.netty:netty-handler-proxy:4.1.29.Final - http://netty.io/netty-handler-proxy/)
-     (Apache 2) Netty Reactive Streams Implementation (com.typesafe.netty:netty-reactive-streams:2.0.0 - https://github.com/playframework/netty-reactive-streams/netty-reactive-streams)
      (Apache License, Version 2.0) Netty/Resolver (io.netty:netty-resolver:4.1.16.Final - http://netty.io/netty-resolver/)
-     (Apache License, Version 2.0) Netty/Resolver (io.netty:netty-resolver:4.1.63.Final - https://netty.io/netty-resolver/)
      (Apache License, Version 2.0) Netty/Resolver/DNS (io.netty:netty-resolver-dns:4.1.29.Final - http://netty.io/netty-resolver-dns/)
      (Apache License, Version 2.0) Netty/Transport (io.netty:netty-transport:4.1.16.Final - http://netty.io/netty-transport/)
-     (Apache License, Version 2.0) Netty/Transport (io.netty:netty-transport:4.1.63.Final - https://netty.io/netty-transport/)
+     (Apache License, Version 2.0) Netty/Transport/Native/Epoll (io.netty:netty-transport-native-epoll:4.1.29.Final - http://netty.io/netty-transport-native-epoll/)
      (Apache License, Version 2.0) Netty/Transport/Native/Unix/Common (io.netty:netty-transport-native-unix-common:4.1.29.Final - http://netty.io/netty-transport-native-unix-common/)
      (The Apache Software License, Version 2.0) Nimbus JOSE+JWT (com.nimbusds:nimbus-jose-jwt:4.41.1 - https://bitbucket.org/connect2id/nimbus-jose-jwt)
-     (Apache 2) Objenesis (org.objenesis:objenesis:2.5.1 - http://objenesis.org)
-     (Apache 2.0) OkHttp (com.squareup.okhttp:okhttp:1.0.2 - https://github.com/square/okhttp/okhttp)
-     (Apache 2.0) OkHttp (com.squareup.okhttp:okhttp:2.4.0 - https://github.com/square/okhttp/okhttp)
-     (The Apache Software License, Version 2.0) okhttp (com.squareup.okhttp3:okhttp:4.9.1 - https://square.github.io/okhttp/)
-     (Apache 2.0) Okio (com.squareup.okio:okio:1.4.0 - https://github.com/square/okio/okio)
-     (The Apache Software License, Version 2.0) Okio (com.squareup.okio:okio:2.8.0 - https://github.com/square/okio/)
+     (Apache 2) Objenesis (org.objenesis:objenesis:2.1 - http://objenesis.org)
+     (The Apache Software License, Version 2.0) okhttp-logging-interceptor (com.squareup.okhttp3:logging-interceptor:4.9.1 - https://square.github.io/okhttp/)
      (Apache 2) opencsv (com.opencsv:opencsv:4.6 - http://opencsv.sf.net)
-     (Apache License, Version 2.0) ORC Core (org.apache.orc:orc-core:1.5.6 - http://orc.apache.org/orc-core)
-     (Apache License, Version 2.0) ORC Shims (org.apache.orc:orc-shims:1.5.6 - http://orc.apache.org/orc-shims)
-     (The Apache Software License, Version 2.0) Jackson module: Paranamer (com.fasterxml.jackson.module:jackson-module-paranamer:2.7.9 - https://github.com/FasterXML/jackson-modules-base)
-     (The Apache Software License, Version 2.0) Apache Parquet Column (org.apache.parquet:parquet-column:1.10.0 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Column (org.apache.parquet:parquet-column:1.11.1 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Common (org.apache.parquet:parquet-common:1.10.0 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Common (org.apache.parquet:parquet-common:1.11.1 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Encodings (org.apache.parquet:parquet-encoding:1.10.0 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Encodings (org.apache.parquet:parquet-encoding:1.11.1 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Format (org.apache.parquet:parquet-format:2.4.0 - http://parquet.apache.org/)
-     (The Apache Software License, Version 2.0) Apache Parquet Format Structures (org.apache.parquet:parquet-format-structures:1.11.1 - https://parquet.apache.org/)
-     (The Apache Software License, Version 2.0) Apache Parquet Hadoop (org.apache.parquet:parquet-hadoop:1.10.0 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Hadoop (org.apache.parquet:parquet-hadoop:1.11.1 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Jackson (org.apache.parquet:parquet-jackson:1.10.0 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Jackson (org.apache.parquet:parquet-jackson:1.11.1 - https://parquet.apache.org)
+     (Apache License, Version 2.0) ORC Core (org.apache.orc:orc-core:1.5.2 - http://orc.apache.org/orc-core)
+     (Apache License, Version 2.0) ORC MapReduce (org.apache.orc:orc-mapreduce:1.5.2 - http://orc.apache.org/orc-mapreduce)
+     (Apache License, Version 2.0) ORC Shims (org.apache.orc:orc-shims:1.5.2 - http://orc.apache.org/orc-shims)
+     (The Apache License, Version 2.0) org.apiguardian:apiguardian-api (org.apiguardian:apiguardian-api:1.1.0 - https://github.com/apiguardian-team/apiguardian)
+     (The Apache Software License, Version 2.0) org.gridkit.lab::jvm-attach-api (org.gridkit.lab:jvm-attach-api:1.5 - http://code.google.com/p/gridkit/jvm-attach-api)
+     (The Apache License, Version 2.0) org.jetbrains.kotlin:kotlin-stdlib (org.jetbrains.kotlin:kotlin-stdlib:1.4.10 - https://kotlinlang.org/)
+     (The Apache License, Version 2.0) org.jetbrains.kotlin:kotlin-stdlib-common (org.jetbrains.kotlin:kotlin-stdlib-common:1.4.0 - https://kotlinlang.org/)
+     (The Apache License, Version 2.0) org.jetbrains.kotlin:kotlin-stdlib-jdk7 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.10 - https://kotlinlang.org/)
+     (The Apache License, Version 2.0) org.jetbrains.kotlin:kotlin-stdlib-jdk8 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.10 - https://kotlinlang.org/)
+     (Apache 2) org.roaringbitmap:RoaringBitmap (org.roaringbitmap:RoaringBitmap:0.9.0 - https://github.com/RoaringBitmap/RoaringBitmap)
+     (Apache 2) org.roaringbitmap:shims (org.roaringbitmap:shims:0.9.0 - https://github.com/RoaringBitmap/RoaringBitmap)
+     (Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)
+     (The Apache Software License, Version 2.0) parent-join (org.elasticsearch.plugin:parent-join-client:6.3.1 - https://github.com/elastic/elasticsearch)
+     (The Apache Software License, Version 2.0) percolator (org.elasticsearch.plugin:percolator-client:6.3.1 - https://github.com/elastic/elasticsearch)
+     (The Apache Software License, Version 2.0) Phoenix - Spark (org.apache.phoenix:phoenix-spark:5.0.0-HBase-2.0 - http://www.apache.org/phoenix/phoenix-spark/)
+     (The Apache Software License, Version 2.0) Phoenix Core (org.apache.phoenix:phoenix-core:5.0.0-HBase-2.0 - http://www.apache.org/phoenix/phoenix-core/)
      (Apache-2.0) play-mailer (com.typesafe.play:play-mailer_2.11:7.0.2 - https://github.com/playframework/play-mailer)
-     (The Apache Software License, Version 2.0) Plexus Interpolation API (org.codehaus.plexus:plexus-interpolation:1.19 - http://plexus.codehaus.org/plexus-components/plexus-interpolation)
      (Apache License, Version 2.0) Plexus Common Utilities (org.codehaus.plexus:plexus-utils:3.1.0 - http://codehaus-plexus.github.io/plexus-utils/)
-     (Apache License, Version 2.0) Apache POI (org.apache.poi:poi:4.1.2 - http://poi.apache.org/)
-     (Apache License, Version 2.0) Apache POI (org.apache.poi:poi-ooxml:4.1.2 - http://poi.apache.org/)
-     (Apache License, Version 2.0) Apache POI (org.apache.poi:poi-ooxml-schemas:4.1.2 - http://poi.apache.org/)
+     (The Apache Software License, Version 2.0) Plexus Interpolation API (org.codehaus.plexus:plexus-interpolation:1.19 - http://plexus.codehaus.org/plexus-components/plexus-interpolation)
+     (The Apache Software License, Version 2.0) project ':json-path' (com.jayway.jsonpath:json-path:2.3.0 - https://github.com/jayway/JsonPath)
+     (The Apache Software License, Version 2.0) rank-eval (org.elasticsearch.plugin:rank-eval-client:6.3.1 - https://github.com/elastic/elasticsearch)
+     (The Apache Software License, Version 2.0) reindex (org.elasticsearch.plugin:reindex-client:6.3.1 - https://github.com/elastic/elasticsearch)
      (Apache-2.0) resilience4j (io.github.resilience4j:resilience4j-bulkhead:1.3.1 - https://github.com/resilience4j/resilience4j)
-     (Apache-2.0) resilience4j (io.github.resilience4j:resilience4j-core:1.3.1 - https://github.com/resilience4j/resilience4j)
+     (The Apache Software License, Version 2.0) rest (org.elasticsearch.client:elasticsearch-rest-client:6.3.1 - https://github.com/elastic/elasticsearch)
+     (The Apache Software License, Version 2.0) rest-high-level (org.elasticsearch.client:elasticsearch-rest-high-level-client:6.3.1 - https://github.com/elastic/elasticsearch)
      (The Apache Software License, Version 2.0) Retrofit (com.squareup.retrofit2:retrofit:2.9.0 - https://github.com/square/retrofit)
-     (Apache-2.0) scala-xml (org.scala-lang.modules:scala-xml_2.11:1.3.0 - http://www.scala-lang.org/)
+     (Apache 2) RoaringBitmap (org.roaringbitmap:RoaringBitmap:0.5.11 - https://github.com/lemire/RoaringBitmap)
      (Apache 2) scalaj-http (org.scalaj:scalaj-http_2.11:2.3.0 - http://github.com/scalaj/scalaj-http)
-     (Apache License Version 2.0) SIGAR (org.hyperic:sigar:1.6.5.132 - http://sigar.hyperic.com/)
-     (Apache License, Version 2.0) com.yahoo.datasketches:sketches-core (com.yahoo.datasketches:sketches-core:0.9.0 - https://datasketches.github.io/sketches-core/)
+     (The Apache License, Version 2.0) seatunnel-api-base (org.apache.seatunnel:seatunnel-api-base:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-apis/seatunnel-api-base)
+     (The Apache License, Version 2.0) seatunnel-api-flink (org.apache.seatunnel:seatunnel-api-flink:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-apis/seatunnel-api-flink)
+     (The Apache License, Version 2.0) seatunnel-api-spark (org.apache.seatunnel:seatunnel-api-spark:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-apis/seatunnel-api-spark)
+     (The Apache License, Version 2.0) seatunnel-common (org.apache.seatunnel:seatunnel-common:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-common)
+     (The Apache License, Version 2.0) seatunnel-config (org.apache.seatunnel:seatunnel-config:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-config)
+     (The Apache License, Version 2.0) seatunnel-connector-flink-console (org.apache.seatunnel:seatunnel-connector-flink-console:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-connectors/seatunnel-connector-flink-console)
+     (The Apache License, Version 2.0) seatunnel-connector-flink-doris (org.apache.seatunnel:seatunnel-connector-flink-doris:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-connectors/seatunnel-connector-flink-doris)

Review comment:
       these unwanted




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r807526040



##########
File path: bin/license.py
##########
@@ -0,0 +1,364 @@
+#!/usr/bin/env python3
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import sys
+
+if len(sys.argv) - 1 != 2:
+    print("The length of arguments should be 2!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"

Review comment:
       @zhongjiajie Correct, however we don’t need worry this too much, because new dependencies always have license info, only very old ones haven’t record their license info in maven main repo.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r811957229



##########
File path: seatunnel-dist/release-docs/LICENSE
##########
@@ -211,115 +211,163 @@ licenses.
 
 
 ========================================================================
-Apache 2.0 licenses
+Apache 2.0 License
 ========================================================================
 
 The following components are provided under the Apache License. See project link for details.
 The text of each license is the standard Apache 2.0 license.
 
-     (Apache 2) org.roaringbitmap:RoaringBitmap (org.roaringbitmap:RoaringBitmap:0.9.0 - https://github.com/RoaringBitmap/RoaringBitmap)
-     (Apache 2) org.roaringbitmap:shims (org.roaringbitmap:shims:0.9.0 - https://github.com/RoaringBitmap/RoaringBitmap)
-     (The Apache Software License, Version 2.0) SparseBitSet (com.zaxxer:SparseBitSet:1.2 - https://github.com/brettwooldridge/SparseBitSet)
-     (The Apache Software License, Version 2.0) ASM based accessors helper used by json-smart (net.minidev:accessors-smart:1.2 - http://www.minidev.net/)
      (The Apache Software License, Version 2.0) Aggregate Designer Algorithm (net.hydromatic:aggdesigner-algorithm:6.0 - http://github.com/julianhyde/aggdesigner/aggdesigner-algorithm)
      (The Apache Software License, Version 2.0) aggs-matrix-stats (org.elasticsearch.plugin:aggs-matrix-stats-client:6.3.1 - https://github.com/elastic/elasticsearch)
      (Apache License 2.0) aircompressor (io.airlift:aircompressor:0.10 - http://github.com/airlift/aircompressor)
      (Apache License 2.0) airline (io.airlift:airline:0.7 - https://github.com/airlift/airline)
-     (The Apache Software License, Version 2.0) IntelliJ IDEA Annotations (org.jetbrains:annotations:13.0 - http://www.jetbrains.org)
-     (The Apache License, Version 2.0) org.apiguardian:apiguardian-api (org.apiguardian:apiguardian-api:1.1.0 - https://github.com/apiguardian-team/apiguardian)
-     (The Apache Software License, Version 2.0) flink-shaded-asm-7 (org.apache.flink:flink-shaded-asm-7:7.1-13.0 - http://flink.apache.org/flink-shaded-asm-7)
-     (Apache License 2.0) Asynchronous Http Client (org.asynchttpclient:async-http-client:2.5.3 - http://github.com/AsyncHttpClient/async-http-client/async-http-client)
-     (Apache License 2.0) Asynchronous Http Client Netty Utils (org.asynchttpclient:async-http-client-netty-utils:2.5.3 - http://github.com/AsyncHttpClient/async-http-client/async-http-client-netty-utils)
-     (Apache License, Version 2.0) Apache Yetus - Audience Annotations (org.apache.yetus:audience-annotations:0.5.0 - https://yetus.apache.org/audience-annotations)
-     (Apache License, Version 2.0) Apache Yetus - Audience Annotations (org.apache.yetus:audience-annotations:0.7.0 - https://yetus.apache.org/audience-annotations)
-     (The Apache License, Version 2.0) Apache Calcite Avatica (org.apache.calcite.avatica:avatica-core:1.20.0 - https://calcite.apache.org/avatica)
+     (Apache License, Version 2.0) akka-actor (com.typesafe.akka:akka-actor_2.11:2.5.21 - http://akka.io/)
+     (Apache License, Version 2.0) akka-protobuf (com.typesafe.akka:akka-protobuf_2.11:2.5.21 - http://akka.io/)
+     (Apache License, Version 2.0) akka-slf4j (com.typesafe.akka:akka-slf4j_2.11:2.5.21 - http://akka.io/)
+     (Apache License, Version 2.0) akka-stream (com.typesafe.akka:akka-stream_2.11:2.5.21 - http://akka.io/)
+     (Apache License, Version 2.0) An open source Java toolkit for Amazon S3 (net.java.dev.jets3t:jets3t:0.9.0 - http://www.jets3t.org)
+     (The Apache Software License, Version 2.0) Apache Avro IPC (org.apache.avro:avro-ipc:1.7.7 - http://avro.apache.org)
+     (The Apache Software License, Version 2.0) Apache Avro Mapred API (org.apache.avro:avro-mapred:1.8.2 - http://avro.apache.org/avro-mapred)
+     (The Apache License, Version 2.0) Apache Calcite Avatica (org.apache.calcite.avatica:avatica-core:1.17.0 - https://calcite.apache.org/avatica)
      (The Apache License, Version 2.0) Apache Calcite Avatica Metrics (org.apache.calcite.avatica:avatica-metrics:1.20.0 - https://calcite.apache.org/avatica)
+     (Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.9.3 - https://commons.apache.org/proper/commons-beanutils/)
+     (Apache License, Version 2.0) Apache Commons CLI (commons-cli:commons-cli:1.3.1 - http://commons.apache.org/proper/commons-cli/)
+     (Apache License, Version 2.0) Apache Commons Collections (commons-collections:commons-collections:3.2.2 - http://commons.apache.org/collections/)

Review comment:
       I believe it would be so much next time




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r815263916



##########
File path: bin/license.py
##########
@@ -0,0 +1,387 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if sys.version_info.major < 3:
+    print('At least Python3 is required!')
+    print('Please refer to the https://www.python.org/downloads/ documentation if you do not have a right Python env.')
+    exit(-1)
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 3!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+dependency_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"
+}
+licenses_describe_map = {
+    "Apache 2.0 License":
+        """The following components are provided under the Apache License. See project link for details.
+The text of each license is the standard Apache 2.0 license.
+""",
+    "MIT License": """The following components are provided under the MIT License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "BSD License": """The following components are provided under a BSD license. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CC0-1.0 License": """The following components are provided under the CC0-1.0 License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CDDL License": """The following components are provided under the CDDL License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Eclipse Public License": """The following components are provided under the Eclipse Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Public Domain License": """The following components are provided under the Public Domain License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Mozilla Public License Version 2.0": """The following components are provided under the Mozilla Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Unicode License": """The following components are provided under the Unicode License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Go License": """The following components are provided under the Go License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+"""
+}
+licenses_map = {
+    "Apache 2.0 License": [],
+    "MIT License": [],
+    "BSD License": [],
+    "CC0-1.0 License": [],
+    "CDDL License": [],
+    "Eclipse Public License": [],
+    "Public Domain License": [],
+    "Mozilla Public License Version 2.0": [],
+    "Unicode License": [],
+    "Go License": [],
+    "Other License": []
+}
+
+for _ in licenses:
+    if "org.apache.seatunnel" in _:
+        continue
+    if "Unknown license" in _:
+        for k, v in dependency_licenses_map.items():
+            if k in _:
+                _ = v
+                break
+    _ = _.strip(" ")
+    if _ == '\n':
+        continue
+    if '(' not in _ or ')' not in _:
+        continue
+    # (Apache 2.0 License) Spark Project Tags (org.apache.spark:spark-tags_2.11:2.4.0 - http://spark.apache.org/)
+    items = _.split(") ")
+    if len(items) != 2:
+        continue
+    type = items[0]
+    l = None
+    for k in licenses_keyword_map:
+        for keyword in licenses_keyword_map[k]:
+            if keyword in type:
+                l = k
+                break
+    if l is None:
+        l = "Other License"
+    licenses_map[l].append(_.strip('\n'))
+
+if len(licenses_map["Other License"]) != 0:
+    for other_license in licenses_map["Other License"]:
+        print(other_license)
+    print("There are some licenses are unknown!")
+    print("Please confirm the license by finding LICENSE file in the corresponding Jar file and maintain it in the unknown_licenses_map instance.")
+    exit(-1)
+
+res = ""
+res += """                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "{}"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright {yyyy} {name of copyright owner}
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+=======================================================================
+Apache SeaTunnel (Incubating) Subcomponents:
+
+The Apache SeaTunnel(Incubating) project contains subcomponents with separate copyright
+notices and license terms. Your use of the source code for the these
+subcomponents is subject to the terms and conditions of the following
+licenses.
+
+
+
+"""
+
+for k, v in licenses_map.items():
+    if len(v) == 0:
+        continue
+    res += "========================================================================\n"
+    res += k
+    res += '\n'
+    res += "========================================================================\n\n"
+    res += licenses_describe_map[k]
+    res += '\n'
+    for _ in sorted(v):
+        res += "     "
+        res += _
+        res += '\n'
+    res += '\n\n'
+
+if print_diff == 'true':
+    tmp_file = third_party + ".tmp"
+    with open(tmp_file, "w") as f:
+        f.write(res)
+    print("Please modify the LICENSE file according to the diff information.")
+    diff_res = os.system("diff " + license + " " + tmp_file)

Review comment:
       It's done, now it supports Windows




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] CalvinKirs commented on pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#issuecomment-1033704551


   discuss link: https://lists.apache.org/thread/3yt08f67p3sp2o2492y8jsrhzl62d2zh


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r806736199



##########
File path: seatunnel-dist/release-docs/LICENSE
##########
@@ -590,161 +524,162 @@ The text of each license is the standard Apache 2.0 license.
      (Apache 2) Lucene Spatial Extras (org.apache.lucene:lucene-spatial-extras:7.3.1 - http://lucene.apache.org/lucene-parent/lucene-spatial-extras)
      (Apache 2) Lucene Suggest (org.apache.lucene:lucene-suggest:7.3.1 - http://lucene.apache.org/lucene-parent/lucene-suggest)
      (The Apache Software License, Version 2.0) LZ4 and xxHash (net.jpountz.lz4:lz4:1.3.0 - https://github.com/jpountz/lz4-java)
-     (The Apache Software License, Version 2.0) LZ4 and xxHash (org.lz4:lz4-java:1.4.0 - https://github.com/lz4/lz4-java)
-     (The Apache Software License, Version 2.0) LZ4 and xxHash (org.lz4:lz4-java:1.4.1 - https://github.com/lz4/lz4-java)
-     (The Apache Software License, Version 2.0) LZ4 and xxHash (org.lz4:lz4-java:1.6.0 - https://github.com/lz4/lz4-java)
-     (The Apache Software License, Version 2.0) LZ4 and xxHash (org.lz4:lz4-java:1.7.1 - https://github.com/lz4/lz4-java)
      (The Apache Software License, Version 2.0) Maven Aether Provider (org.apache.maven:maven-aether-provider:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-aether-provider)
      (Apache License, Version 2.0) Maven Artifact (org.apache.maven:maven-artifact:3.6.0 - https://maven.apache.org/ref/3.6.0/maven-artifact/)
-     (The Apache Software License, Version 2.0) Maven Model Builder (org.apache.maven:maven-model-builder:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-model-builder)
      (The Apache Software License, Version 2.0) Maven Model (org.apache.maven:maven-model:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-model)
+     (The Apache Software License, Version 2.0) Maven Model Builder (org.apache.maven:maven-model-builder:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-model-builder)
      (The Apache Software License, Version 2.0) Maven Repository Metadata Model (org.apache.maven:maven-repository-metadata:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-repository-metadata)
-     (The Apache Software License, Version 2.0) Maven Settings Builder (org.apache.maven:maven-settings-builder:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-settings-builder)
      (The Apache Software License, Version 2.0) Maven Settings (org.apache.maven:maven-settings:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-settings)
-     (Apache License, Version 2.0) com.yahoo.datasketches:memory (com.yahoo.datasketches:memory:0.9.0 - https://datasketches.github.io/memory/)
+     (The Apache Software License, Version 2.0) Maven Settings Builder (org.apache.maven:maven-settings-builder:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-settings-builder)
      (Apache License 2.0) Metrics Core (io.dropwizard.metrics:metrics-core:3.1.5 - http://metrics.codahale.com/metrics-core/)
-     (Apache License 2.0) Metrics Core (io.dropwizard.metrics:metrics-core:3.2.1 - http://metrics.codahale.com/metrics-core/)
-     (Apache License 2.0) Metrics Core (io.dropwizard.metrics:metrics-core:4.0.0 - http://metrics.dropwizard.io/metrics-core)
-     (The Apache Software License, Version 2.0) MongoDB Java Driver (org.mongodb:mongo-java-driver:3.4.2 - http://www.mongodb.org)
      (Apache-2.0) mongo-spark-connector (org.mongodb.spark:mongo-spark-connector_2.11:2.2.0 - http://github.com/mongo-spark)
+     (The Apache Software License, Version 2.0) MongoDB Java Driver (org.mongodb:mongo-java-driver:3.4.2 - http://www.mongodb.org)
      (Apache 2.0) Moshi (com.squareup.moshi:moshi:1.8.0 - https://github.com/square/moshi/moshi)
+     (APL2) msgpack-core (org.msgpack:msgpack-core:0.9.0 - https://msgpack.org/)
+     (Apache License, Version 2) Neo4j Java Driver (org.neo4j.driver:neo4j-java-driver:4.3.4 - https://github.com/neo4j/neo4j-java-driver/neo4j-java-driver)
      (The Apache Software License, Version 2.0) neo4j-connector-apache-spark-2.4.8 (org.neo4j:neo4j-connector-apache-spark_2.11:4.1.0_for_spark_2.4 - https://github.com/neo4j-contrib/neo4j-spark-connector/neo4j-connector-apache-spark_2.12)
      (The Apache Software License, Version 2.0) neo4j-connector-apache-spark-common (org.neo4j:neo4j-connector-apache-spark_2.12_common:4.1.0 - https://github.com/neo4j-contrib/neo4j-spark-connector/neo4j-connector-apache-spark_2.12_common)
-     (The Apache Software License, Version 2.0) Neo4j Cypher DSL (Core) (org.neo4j:neo4j-cypher-dsl:2020.1.4 - https://neo4j-contrib.github.io/cypher-dsl/neo4j-cypher-dsl)
-     (Apache License, Version 2) Neo4j Java Driver (org.neo4j.driver:neo4j-java-driver:4.3.4 - https://github.com/neo4j/neo4j-java-driver/neo4j-java-driver)
+     (The Apache License, Version 2.0) net.thisptr:jackson-jq (net.thisptr:jackson-jq:0.0.10 - https://github.com/eiiches/jackson-jq/jackson-jq)
      (Apache License, Version 2.0) Netty (io.netty:netty:3.10.5.Final - http://netty.io/)
-     (Apache License, Version 2.0) Netty (io.netty:netty:3.10.6.Final - http://netty.io/)
-     (Apache License, Version 2.0) Netty (io.netty:netty:3.9.9.Final - http://netty.io/)
+     (Apache 2) Netty Reactive Streams Implementation (com.typesafe.netty:netty-reactive-streams:2.0.0 - https://github.com/playframework/netty-reactive-streams/netty-reactive-streams)
      (Apache License, Version 2.0) Netty/All-in-One (io.netty:netty-all:4.0.23.Final - http://netty.io/netty-all/)
-     (Apache License, Version 2.0) Netty/All-in-One (io.netty:netty-all:4.1.17.Final - http://netty.io/netty-all/)
      (Apache License, Version 2.0) Netty/Buffer (io.netty:netty-buffer:4.1.16.Final - http://netty.io/netty-buffer/)
-     (Apache License, Version 2.0) Netty/Buffer (io.netty:netty-buffer:4.1.63.Final - https://netty.io/netty-buffer/)
      (Apache License, Version 2.0) Netty/Codec (io.netty:netty-codec:4.1.16.Final - http://netty.io/netty-codec/)
-     (Apache License, Version 2.0) Netty/Codec/HTTP (io.netty:netty-codec-http:4.1.16.Final - http://netty.io/netty-codec-http/)
-     (Apache License, Version 2.0) Netty/Codec/HTTP (io.netty:netty-codec-http:4.1.63.Final - https://netty.io/netty-codec-http/)
-     (Apache License, Version 2.0) Netty/Codec (io.netty:netty-codec:4.1.63.Final - https://netty.io/netty-codec/)
      (Apache License, Version 2.0) Netty/Codec/DNS (io.netty:netty-codec-dns:4.1.29.Final - http://netty.io/netty-codec-dns/)
+     (Apache License, Version 2.0) Netty/Codec/HTTP (io.netty:netty-codec-http:4.1.16.Final - http://netty.io/netty-codec-http/)
      (Apache License, Version 2.0) Netty/Codec/Socks (io.netty:netty-codec-socks:4.1.29.Final - http://netty.io/netty-codec-socks/)
      (Apache License, Version 2.0) Netty/Common (io.netty:netty-common:4.1.16.Final - http://netty.io/netty-common/)
-     (Apache License, Version 2.0) Netty/Common (io.netty:netty-common:4.1.63.Final - https://netty.io/netty-common/)
      (Apache License, Version 2.0) Netty/Handler (io.netty:netty-handler:4.1.16.Final - http://netty.io/netty-handler/)
-     (Apache License, Version 2.0) Netty/Handler (io.netty:netty-handler:4.1.63.Final - https://netty.io/netty-handler/)
      (Apache License, Version 2.0) Netty/Handler/Proxy (io.netty:netty-handler-proxy:4.1.29.Final - http://netty.io/netty-handler-proxy/)
-     (Apache 2) Netty Reactive Streams Implementation (com.typesafe.netty:netty-reactive-streams:2.0.0 - https://github.com/playframework/netty-reactive-streams/netty-reactive-streams)
      (Apache License, Version 2.0) Netty/Resolver (io.netty:netty-resolver:4.1.16.Final - http://netty.io/netty-resolver/)
-     (Apache License, Version 2.0) Netty/Resolver (io.netty:netty-resolver:4.1.63.Final - https://netty.io/netty-resolver/)
      (Apache License, Version 2.0) Netty/Resolver/DNS (io.netty:netty-resolver-dns:4.1.29.Final - http://netty.io/netty-resolver-dns/)
      (Apache License, Version 2.0) Netty/Transport (io.netty:netty-transport:4.1.16.Final - http://netty.io/netty-transport/)
-     (Apache License, Version 2.0) Netty/Transport (io.netty:netty-transport:4.1.63.Final - https://netty.io/netty-transport/)
+     (Apache License, Version 2.0) Netty/Transport/Native/Epoll (io.netty:netty-transport-native-epoll:4.1.29.Final - http://netty.io/netty-transport-native-epoll/)
      (Apache License, Version 2.0) Netty/Transport/Native/Unix/Common (io.netty:netty-transport-native-unix-common:4.1.29.Final - http://netty.io/netty-transport-native-unix-common/)
      (The Apache Software License, Version 2.0) Nimbus JOSE+JWT (com.nimbusds:nimbus-jose-jwt:4.41.1 - https://bitbucket.org/connect2id/nimbus-jose-jwt)
-     (Apache 2) Objenesis (org.objenesis:objenesis:2.5.1 - http://objenesis.org)
-     (Apache 2.0) OkHttp (com.squareup.okhttp:okhttp:1.0.2 - https://github.com/square/okhttp/okhttp)
-     (Apache 2.0) OkHttp (com.squareup.okhttp:okhttp:2.4.0 - https://github.com/square/okhttp/okhttp)
-     (The Apache Software License, Version 2.0) okhttp (com.squareup.okhttp3:okhttp:4.9.1 - https://square.github.io/okhttp/)
-     (Apache 2.0) Okio (com.squareup.okio:okio:1.4.0 - https://github.com/square/okio/okio)
-     (The Apache Software License, Version 2.0) Okio (com.squareup.okio:okio:2.8.0 - https://github.com/square/okio/)
+     (Apache 2) Objenesis (org.objenesis:objenesis:2.1 - http://objenesis.org)
+     (The Apache Software License, Version 2.0) okhttp-logging-interceptor (com.squareup.okhttp3:logging-interceptor:4.9.1 - https://square.github.io/okhttp/)
      (Apache 2) opencsv (com.opencsv:opencsv:4.6 - http://opencsv.sf.net)
-     (Apache License, Version 2.0) ORC Core (org.apache.orc:orc-core:1.5.6 - http://orc.apache.org/orc-core)
-     (Apache License, Version 2.0) ORC Shims (org.apache.orc:orc-shims:1.5.6 - http://orc.apache.org/orc-shims)
-     (The Apache Software License, Version 2.0) Jackson module: Paranamer (com.fasterxml.jackson.module:jackson-module-paranamer:2.7.9 - https://github.com/FasterXML/jackson-modules-base)
-     (The Apache Software License, Version 2.0) Apache Parquet Column (org.apache.parquet:parquet-column:1.10.0 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Column (org.apache.parquet:parquet-column:1.11.1 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Common (org.apache.parquet:parquet-common:1.10.0 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Common (org.apache.parquet:parquet-common:1.11.1 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Encodings (org.apache.parquet:parquet-encoding:1.10.0 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Encodings (org.apache.parquet:parquet-encoding:1.11.1 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Format (org.apache.parquet:parquet-format:2.4.0 - http://parquet.apache.org/)
-     (The Apache Software License, Version 2.0) Apache Parquet Format Structures (org.apache.parquet:parquet-format-structures:1.11.1 - https://parquet.apache.org/)
-     (The Apache Software License, Version 2.0) Apache Parquet Hadoop (org.apache.parquet:parquet-hadoop:1.10.0 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Hadoop (org.apache.parquet:parquet-hadoop:1.11.1 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Jackson (org.apache.parquet:parquet-jackson:1.10.0 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Jackson (org.apache.parquet:parquet-jackson:1.11.1 - https://parquet.apache.org)
+     (Apache License, Version 2.0) ORC Core (org.apache.orc:orc-core:1.5.2 - http://orc.apache.org/orc-core)
+     (Apache License, Version 2.0) ORC MapReduce (org.apache.orc:orc-mapreduce:1.5.2 - http://orc.apache.org/orc-mapreduce)
+     (Apache License, Version 2.0) ORC Shims (org.apache.orc:orc-shims:1.5.2 - http://orc.apache.org/orc-shims)
+     (The Apache License, Version 2.0) org.apiguardian:apiguardian-api (org.apiguardian:apiguardian-api:1.1.0 - https://github.com/apiguardian-team/apiguardian)
+     (The Apache Software License, Version 2.0) org.gridkit.lab::jvm-attach-api (org.gridkit.lab:jvm-attach-api:1.5 - http://code.google.com/p/gridkit/jvm-attach-api)
+     (The Apache License, Version 2.0) org.jetbrains.kotlin:kotlin-stdlib (org.jetbrains.kotlin:kotlin-stdlib:1.4.10 - https://kotlinlang.org/)
+     (The Apache License, Version 2.0) org.jetbrains.kotlin:kotlin-stdlib-common (org.jetbrains.kotlin:kotlin-stdlib-common:1.4.0 - https://kotlinlang.org/)
+     (The Apache License, Version 2.0) org.jetbrains.kotlin:kotlin-stdlib-jdk7 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.10 - https://kotlinlang.org/)
+     (The Apache License, Version 2.0) org.jetbrains.kotlin:kotlin-stdlib-jdk8 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.10 - https://kotlinlang.org/)
+     (Apache 2) org.roaringbitmap:RoaringBitmap (org.roaringbitmap:RoaringBitmap:0.9.0 - https://github.com/RoaringBitmap/RoaringBitmap)
+     (Apache 2) org.roaringbitmap:shims (org.roaringbitmap:shims:0.9.0 - https://github.com/RoaringBitmap/RoaringBitmap)
+     (Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)
+     (The Apache Software License, Version 2.0) parent-join (org.elasticsearch.plugin:parent-join-client:6.3.1 - https://github.com/elastic/elasticsearch)
+     (The Apache Software License, Version 2.0) percolator (org.elasticsearch.plugin:percolator-client:6.3.1 - https://github.com/elastic/elasticsearch)
+     (The Apache Software License, Version 2.0) Phoenix - Spark (org.apache.phoenix:phoenix-spark:5.0.0-HBase-2.0 - http://www.apache.org/phoenix/phoenix-spark/)
+     (The Apache Software License, Version 2.0) Phoenix Core (org.apache.phoenix:phoenix-core:5.0.0-HBase-2.0 - http://www.apache.org/phoenix/phoenix-core/)
      (Apache-2.0) play-mailer (com.typesafe.play:play-mailer_2.11:7.0.2 - https://github.com/playframework/play-mailer)
-     (The Apache Software License, Version 2.0) Plexus Interpolation API (org.codehaus.plexus:plexus-interpolation:1.19 - http://plexus.codehaus.org/plexus-components/plexus-interpolation)
      (Apache License, Version 2.0) Plexus Common Utilities (org.codehaus.plexus:plexus-utils:3.1.0 - http://codehaus-plexus.github.io/plexus-utils/)
-     (Apache License, Version 2.0) Apache POI (org.apache.poi:poi:4.1.2 - http://poi.apache.org/)
-     (Apache License, Version 2.0) Apache POI (org.apache.poi:poi-ooxml:4.1.2 - http://poi.apache.org/)
-     (Apache License, Version 2.0) Apache POI (org.apache.poi:poi-ooxml-schemas:4.1.2 - http://poi.apache.org/)
+     (The Apache Software License, Version 2.0) Plexus Interpolation API (org.codehaus.plexus:plexus-interpolation:1.19 - http://plexus.codehaus.org/plexus-components/plexus-interpolation)
+     (The Apache Software License, Version 2.0) project ':json-path' (com.jayway.jsonpath:json-path:2.3.0 - https://github.com/jayway/JsonPath)
+     (The Apache Software License, Version 2.0) rank-eval (org.elasticsearch.plugin:rank-eval-client:6.3.1 - https://github.com/elastic/elasticsearch)
+     (The Apache Software License, Version 2.0) reindex (org.elasticsearch.plugin:reindex-client:6.3.1 - https://github.com/elastic/elasticsearch)
      (Apache-2.0) resilience4j (io.github.resilience4j:resilience4j-bulkhead:1.3.1 - https://github.com/resilience4j/resilience4j)
-     (Apache-2.0) resilience4j (io.github.resilience4j:resilience4j-core:1.3.1 - https://github.com/resilience4j/resilience4j)
+     (The Apache Software License, Version 2.0) rest (org.elasticsearch.client:elasticsearch-rest-client:6.3.1 - https://github.com/elastic/elasticsearch)
+     (The Apache Software License, Version 2.0) rest-high-level (org.elasticsearch.client:elasticsearch-rest-high-level-client:6.3.1 - https://github.com/elastic/elasticsearch)
      (The Apache Software License, Version 2.0) Retrofit (com.squareup.retrofit2:retrofit:2.9.0 - https://github.com/square/retrofit)
-     (Apache-2.0) scala-xml (org.scala-lang.modules:scala-xml_2.11:1.3.0 - http://www.scala-lang.org/)
+     (Apache 2) RoaringBitmap (org.roaringbitmap:RoaringBitmap:0.5.11 - https://github.com/lemire/RoaringBitmap)
      (Apache 2) scalaj-http (org.scalaj:scalaj-http_2.11:2.3.0 - http://github.com/scalaj/scalaj-http)
-     (Apache License Version 2.0) SIGAR (org.hyperic:sigar:1.6.5.132 - http://sigar.hyperic.com/)
-     (Apache License, Version 2.0) com.yahoo.datasketches:sketches-core (com.yahoo.datasketches:sketches-core:0.9.0 - https://datasketches.github.io/sketches-core/)
+     (The Apache License, Version 2.0) seatunnel-api-base (org.apache.seatunnel:seatunnel-api-base:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-apis/seatunnel-api-base)
+     (The Apache License, Version 2.0) seatunnel-api-flink (org.apache.seatunnel:seatunnel-api-flink:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-apis/seatunnel-api-flink)
+     (The Apache License, Version 2.0) seatunnel-api-spark (org.apache.seatunnel:seatunnel-api-spark:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-apis/seatunnel-api-spark)
+     (The Apache License, Version 2.0) seatunnel-common (org.apache.seatunnel:seatunnel-common:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-common)
+     (The Apache License, Version 2.0) seatunnel-config (org.apache.seatunnel:seatunnel-config:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-config)
+     (The Apache License, Version 2.0) seatunnel-connector-flink-console (org.apache.seatunnel:seatunnel-connector-flink-console:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-connectors/seatunnel-connector-flink-console)
+     (The Apache License, Version 2.0) seatunnel-connector-flink-doris (org.apache.seatunnel:seatunnel-connector-flink-doris:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-connectors/seatunnel-connector-flink-doris)

Review comment:
       Hi @CalvinKirs, thanks for your comment. These are removed.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r803732440



##########
File path: seatunnel-dist/release-docs/LICENSE
##########
@@ -937,13 +819,34 @@ The text of each license is also included at licenses/LICENSE-[project].txt.
      (Mozilla Public License Version 2.0) jamon-runtime (org.jamon:jamon-runtime:2.4.1 - http://www.jamon.org/jamon-java-parent/jamon-runtime/)
      (Mozilla Public License, Version 2.0) Mozilla Rhino (org.mozilla:rhino:1.7.11 - https://developer.mozilla.org/en/Rhino)
 
+
 ========================================================================
 Unicode License
 ========================================================================
 
 The following components are provided under the Unicode License. See project link for details.
 The text of each license is also included at licenses/LICENSE-[project].txt.
 
-     (Unicode/ICU License) ICU4J (com.ibm.icu:icu4j:60.2 - http://icu-project.org/)
      (Unicode/ICU License) ICU4J Charset Provider (com.ibm.icu:icu4j-charset:60.2 - http://icu-project.org/)
      (Unicode/ICU License) ICU4J Locale Service Provider (com.ibm.icu:icu4j-localespi:60.2 - http://icu-project.org/)
+
+
+========================================================================
+Other License
+========================================================================
+
+The following components are provided under some minority Licenses. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+
+     (Unknown license) Antlr 3.4 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)
+     (Unknown license) commons-beanutils (commons-beanutils:commons-beanutils:1.7.0 - no url defined)
+     (Unknown license) commons-pool (commons-pool:commons-pool:1.5.4 - no url defined)
+     (Unknown license) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)
+     (Unknown license) jsp-api (javax.servlet.jsp:jsp-api:2.1 - no url defined)
+     (APL2) msgpack-core (org.msgpack:msgpack-core:0.9.0 - https://msgpack.org/)
+     (Unknown license) oro (oro:oro:2.0.8 - no url defined)
+     (The Go license) re2j (com.google.re2j:re2j:1.1 - http://github.com/google/re2j)
+     (Unknown license) servlet-api (javax.servlet:servlet-api:2.5 - no url defined)
+     (Unknown license) sigar (org.hyperic:sigar:1.6.5.132 - no url defined)

Review comment:
       Hi @kezhenxu94, the latest version script already supports the handling of unknown licneses, and all existing unknown protocols have found the corresponding licenses and are correctly marked




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] kezhenxu94 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r809838738



##########
File path: bin/license.py
##########
@@ -0,0 +1,381 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if sys.version_info.major < 3:
+    print('At least Python3 is required!')
+    print('Please refer to the https://www.python.org/downloads/ documentation if you do not have a right Python env.')
+    exit(-1)
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 3!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"
+}
+licenses_describe_map = {
+    "Apache 2.0 License":
+        """The following components are provided under the Apache License. See project link for details.
+The text of each license is the standard Apache 2.0 license.
+""",
+    "MIT License": """The following components are provided under the MIT License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "BSD License": """The following components are provided under a BSD license. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CC0-1.0 License": """The following components are provided under the CC0-1.0 License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CDDL License": """The following components are provided under the CDDL License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Eclipse Public License": """The following components are provided under the Eclipse Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Public Domain License": """The following components are provided under the Public Domain License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Mozilla Public License Version 2.0": """The following components are provided under the Mozilla Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Unicode License": """The following components are provided under the Unicode License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Go License": """The following components are provided under the Go License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Other License": """The following components are provided under some minority Licenses. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+"""
+}
+licenses_map = {
+    "Apache 2.0 License": [],
+    "MIT License": [],
+    "BSD License": [],
+    "CC0-1.0 License": [],
+    "CDDL License": [],
+    "Eclipse Public License": [],
+    "Public Domain License": [],
+    "Mozilla Public License Version 2.0": [],
+    "Unicode License": [],
+    "Go License": [],
+    "Other License": []

Review comment:
       This is not needed I think

##########
File path: bin/license.py
##########
@@ -0,0 +1,381 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if sys.version_info.major < 3:
+    print('At least Python3 is required!')
+    print('Please refer to the https://www.python.org/downloads/ documentation if you do not have a right Python env.')
+    exit(-1)
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 3!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"
+}
+licenses_describe_map = {
+    "Apache 2.0 License":
+        """The following components are provided under the Apache License. See project link for details.
+The text of each license is the standard Apache 2.0 license.
+""",
+    "MIT License": """The following components are provided under the MIT License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "BSD License": """The following components are provided under a BSD license. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CC0-1.0 License": """The following components are provided under the CC0-1.0 License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CDDL License": """The following components are provided under the CDDL License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Eclipse Public License": """The following components are provided under the Eclipse Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Public Domain License": """The following components are provided under the Public Domain License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Mozilla Public License Version 2.0": """The following components are provided under the Mozilla Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Unicode License": """The following components are provided under the Unicode License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Go License": """The following components are provided under the Go License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Other License": """The following components are provided under some minority Licenses. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.

Review comment:
       This is not needed I think




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#issuecomment-1055506824


   @kezhenxu94 @CalvinKirs @morningman @zhongjiajie PTAL, thanks


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#issuecomment-1051006442


   It looks like the license script runs fine in Github Action. FYI, https://github.com/apache/incubator-seatunnel/runs/5336363578?check_suite_focus=true
   
   ![image](https://user-images.githubusercontent.com/8108788/155751579-b36a42aa-cb9b-4f07-89de-776aeaa3e3ac.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r815262937



##########
File path: bin/license.py
##########
@@ -0,0 +1,387 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if sys.version_info.major < 3:
+    print('At least Python3 is required!')
+    print('Please refer to the https://www.python.org/downloads/ documentation if you do not have a right Python env.')
+    exit(-1)
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 3!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+dependency_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"
+}
+licenses_describe_map = {
+    "Apache 2.0 License":
+        """The following components are provided under the Apache License. See project link for details.
+The text of each license is the standard Apache 2.0 license.
+""",
+    "MIT License": """The following components are provided under the MIT License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "BSD License": """The following components are provided under a BSD license. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CC0-1.0 License": """The following components are provided under the CC0-1.0 License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CDDL License": """The following components are provided under the CDDL License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Eclipse Public License": """The following components are provided under the Eclipse Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Public Domain License": """The following components are provided under the Public Domain License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Mozilla Public License Version 2.0": """The following components are provided under the Mozilla Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Unicode License": """The following components are provided under the Unicode License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Go License": """The following components are provided under the Go License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+"""
+}
+licenses_map = {
+    "Apache 2.0 License": [],
+    "MIT License": [],
+    "BSD License": [],
+    "CC0-1.0 License": [],
+    "CDDL License": [],
+    "Eclipse Public License": [],
+    "Public Domain License": [],
+    "Mozilla Public License Version 2.0": [],
+    "Unicode License": [],
+    "Go License": [],
+    "Other License": []
+}
+
+for _ in licenses:
+    if "org.apache.seatunnel" in _:
+        continue
+    if "Unknown license" in _:
+        for k, v in dependency_licenses_map.items():
+            if k in _:
+                _ = v
+                break
+    _ = _.strip(" ")
+    if _ == '\n':
+        continue
+    if '(' not in _ or ')' not in _:
+        continue
+    # (Apache 2.0 License) Spark Project Tags (org.apache.spark:spark-tags_2.11:2.4.0 - http://spark.apache.org/)
+    items = _.split(") ")
+    if len(items) != 2:
+        continue
+    type = items[0]
+    l = None
+    for k in licenses_keyword_map:
+        for keyword in licenses_keyword_map[k]:
+            if keyword in type:
+                l = k
+                break
+    if l is None:
+        l = "Other License"
+    licenses_map[l].append(_.strip('\n'))
+
+if len(licenses_map["Other License"]) != 0:
+    for other_license in licenses_map["Other License"]:
+        print(other_license)
+    print("There are some licenses are unknown!")
+    print("Please confirm the license by finding LICENSE file in the corresponding Jar file and maintain it in the unknown_licenses_map instance.")

Review comment:
       Nice catch :+1:




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature][CI] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r801553578



##########
File path: seatunnel-dist/release-docs/LICENSE
##########
@@ -937,13 +819,34 @@ The text of each license is also included at licenses/LICENSE-[project].txt.
      (Mozilla Public License Version 2.0) jamon-runtime (org.jamon:jamon-runtime:2.4.1 - http://www.jamon.org/jamon-java-parent/jamon-runtime/)
      (Mozilla Public License, Version 2.0) Mozilla Rhino (org.mozilla:rhino:1.7.11 - https://developer.mozilla.org/en/Rhino)
 
+
 ========================================================================
 Unicode License
 ========================================================================
 
 The following components are provided under the Unicode License. See project link for details.
 The text of each license is also included at licenses/LICENSE-[project].txt.
 
-     (Unicode/ICU License) ICU4J (com.ibm.icu:icu4j:60.2 - http://icu-project.org/)
      (Unicode/ICU License) ICU4J Charset Provider (com.ibm.icu:icu4j-charset:60.2 - http://icu-project.org/)
      (Unicode/ICU License) ICU4J Locale Service Provider (com.ibm.icu:icu4j-localespi:60.2 - http://icu-project.org/)
+
+
+========================================================================
+Other License
+========================================================================
+
+The following components are provided under some minority Licenses. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+
+     (Unknown license) Antlr 3.4 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)
+     (Unknown license) commons-beanutils (commons-beanutils:commons-beanutils:1.7.0 - no url defined)
+     (Unknown license) commons-pool (commons-pool:commons-pool:1.5.4 - no url defined)
+     (Unknown license) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)
+     (Unknown license) jsp-api (javax.servlet.jsp:jsp-api:2.1 - no url defined)
+     (APL2) msgpack-core (org.msgpack:msgpack-core:0.9.0 - https://msgpack.org/)
+     (Unknown license) oro (oro:oro:2.0.8 - no url defined)
+     (The Go license) re2j (com.google.re2j:re2j:1.1 - http://github.com/google/re2j)
+     (Unknown license) servlet-api (javax.servlet:servlet-api:2.5 - no url defined)
+     (Unknown license) sigar (org.hyperic:sigar:1.6.5.132 - no url defined)

Review comment:
       Yes, that would be great




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature][CI] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r801545845



##########
File path: pom.xml
##########
@@ -789,6 +790,51 @@
                     <artifactId>build-helper-maven-plugin</artifactId>
                     <version>${maven-helper-plugin.version}</version>
                 </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>license-maven-plugin</artifactId>
+                    <version>${maven-license-maven-plugin}</version>
+                    <executions>
+                        <execution>
+                            <id>download</id>
+                            <goals>
+                                <goal>download-licenses</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                    <configuration>
+                        <outputDirectory>${project.basedir}/seatunnel-dist/target/</outputDirectory>
+                        <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
+                        <sortArtifactByName>true</sortArtifactByName>
+                        <useMissingFile>false</useMissingFile>
+                        <addJavaLicenseAfterPackage>true</addJavaLicenseAfterPackage>
+                    </configuration>
+                </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>exec-maven-plugin</artifactId>
+                    <version>${exec-maven-plugin.version}</version>
+                    <executions>
+                        <execution>
+                            <id>license</id>
+                            <phase>package</phase>
+                            <goals>
+                                <goal>exec</goal>
+                            </goals>
+                            <configuration>

Review comment:
       > end users don't need to run this python script if they only want to download the source codes and build the package themselves
   
   Agree, I just disable these by default




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] CalvinKirs commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r809821593



##########
File path: tools/dependencies/known-dependencies.txt
##########
@@ -214,13 +217,13 @@ hadoop-yarn-server-common-2.6.5.jar
 hbase-annotations-2.0.0.jar
 hbase-client-2.0.0.jar
 hbase-client-2.1.0.jar
-hbase-common-2.0.0.jar
 hbase-common-2.0.0-tests.jar
+hbase-common-2.0.0.jar
 hbase-common-2.1.0.jar
-hbase-hadoop2-compat-2.0.0.jar
-hbase-hadoop2-compat-2.1.0.jar
 hbase-hadoop-compat-2.0.0.jar
 hbase-hadoop-compat-2.1.0.jar
+hbase-hadoop2-compat-2.0.0.jar

Review comment:
       Why is the new Jar introduced, are you missing something?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r809815979



##########
File path: bin/license.py
##########
@@ -0,0 +1,376 @@
+#!/usr/bin/env python3

Review comment:
       @zhongjiajie Oh, I see. In that case, SGTM.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] CalvinKirs commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r811971903



##########
File path: pom.xml
##########
@@ -789,6 +790,51 @@
                     <artifactId>build-helper-maven-plugin</artifactId>
                     <version>${maven-helper-plugin.version}</version>
                 </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>license-maven-plugin</artifactId>
+                    <version>${maven-license-maven-plugin}</version>
+                    <executions>
+                        <execution>
+                            <id>download</id>
+                            <goals>
+                                <goal>download-licenses</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                    <configuration>
+                        <outputDirectory>${project.basedir}/seatunnel-dist/target/</outputDirectory>
+                        <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
+                        <sortArtifactByName>true</sortArtifactByName>
+                        <useMissingFile>false</useMissingFile>
+                        <addJavaLicenseAfterPackage>true</addJavaLicenseAfterPackage>
+                    </configuration>
+                </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>exec-maven-plugin</artifactId>
+                    <version>${exec-maven-plugin.version}</version>
+                    <executions>
+                        <execution>
+                            <id>license</id>
+                            <phase>package</phase>
+                            <goals>
+                                <goal>exec</goal>
+                            </goals>
+                            <configuration>

Review comment:
       These are two different things, as I said in my email, it's just a CI check item. It is not executed by default, but you need to check it when running Github CI.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] zhongjiajie commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
zhongjiajie commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r807495550



##########
File path: docs/en/developement/NewLicenseGuide.md
##########
@@ -2,9 +2,19 @@
 
 If you have any new Jar binary package adding in you PR, you need to follow the steps below to notice license
 
-1. declared in `tools/dependencies/konw-dependencies.txt`,
-2. Add the corresponding License file under `seatunnel-dist/release-docs/licenses`, if it is a standard Apache License, it does not need to be added.
+1. declared in `tools/dependencies/konw-dependencies.txt`
+
+2. Add the corresponding License file under `seatunnel-dist/release-docs/licenses`, if it is a standard Apache License, it does not need to be added
+
 3. Add the corresponding statement in `seatunnel-dist/release-docs/LICENSE`
+
+   ```bash
+   # At the same time, you can also use the script to assist the inspection.
+   # Because it only uses the Python native APIs and does not depend on any third-party libraries, it can run using the original Python environment.
+   # Please refer to the documentation if you do not have a Python env: https://www.python.org/downloads/
+   python3 bin/license.py seatunnel-dist/target/THIRD-PARTY.txt seatunnel-dist/release-docs/LICENSE true

Review comment:
       I don't know much about the license, but what is it file `seatunnel-dist/target/THIRD-PARTY.txt` look like and how it generated

##########
File path: bin/license.py
##########
@@ -0,0 +1,376 @@
+#!/usr/bin/env python3

Review comment:
       The best practices is not point to a specific version of python, and check the version in the code
   ```suggestion
   #!/usr/bin/env python
   ```

##########
File path: bin/license.py
##########
@@ -0,0 +1,376 @@
+#!/usr/bin/env python3
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 2!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"
+}
+licenses_describe_map = {
+    "Apache 2.0 License":
+        """The following components are provided under the Apache License. See project link for details.
+The text of each license is the standard Apache 2.0 license.
+""",
+    "MIT License": """The following components are provided under the MIT License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "BSD License": """The following components are provided under a BSD license. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CC0-1.0 License": """The following components are provided under the CC0-1.0 License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CDDL License": """The following components are provided under the CDDL License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Eclipse Public License": """The following components are provided under the Eclipse Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Public Domain License": """The following components are provided under the Public Domain License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Mozilla Public License Version 2.0": """The following components are provided under the Mozilla Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Unicode License": """The following components are provided under the Unicode License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Go License": """The following components are provided under the Go License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Other License": """The following components are provided under some minority Licenses. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+"""
+}
+licenses_map = {
+    "Apache 2.0 License": [],
+    "MIT License": [],
+    "BSD License": [],
+    "CC0-1.0 License": [],
+    "CDDL License": [],
+    "Eclipse Public License": [],
+    "Public Domain License": [],
+    "Mozilla Public License Version 2.0": [],
+    "Unicode License": [],
+    "Go License": [],
+    "Other License": []
+}
+
+for _ in licenses:

Review comment:
       Due to we use this variable in the next, I think we better named it for easier to maintain
   ```suggestion
   for license in licenses:
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r807529874



##########
File path: bin/license.py
##########
@@ -0,0 +1,376 @@
+#!/usr/bin/env python3
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 2!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"
+}
+licenses_describe_map = {
+    "Apache 2.0 License":
+        """The following components are provided under the Apache License. See project link for details.
+The text of each license is the standard Apache 2.0 license.
+""",
+    "MIT License": """The following components are provided under the MIT License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "BSD License": """The following components are provided under a BSD license. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CC0-1.0 License": """The following components are provided under the CC0-1.0 License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CDDL License": """The following components are provided under the CDDL License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Eclipse Public License": """The following components are provided under the Eclipse Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Public Domain License": """The following components are provided under the Public Domain License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Mozilla Public License Version 2.0": """The following components are provided under the Mozilla Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Unicode License": """The following components are provided under the Unicode License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Go License": """The following components are provided under the Go License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Other License": """The following components are provided under some minority Licenses. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+"""
+}
+licenses_map = {
+    "Apache 2.0 License": [],
+    "MIT License": [],
+    "BSD License": [],
+    "CC0-1.0 License": [],
+    "CDDL License": [],
+    "Eclipse Public License": [],
+    "Public Domain License": [],
+    "Mozilla Public License Version 2.0": [],
+    "Unicode License": [],
+    "Go License": [],
+    "Other License": []
+}
+
+for _ in licenses:

Review comment:
       Emm.. I believe the `_` can simplify the code, which is easier to maintain, right




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] kezhenxu94 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r815250769



##########
File path: bin/license.py
##########
@@ -0,0 +1,387 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if sys.version_info.major < 3:
+    print('At least Python3 is required!')
+    print('Please refer to the https://www.python.org/downloads/ documentation if you do not have a right Python env.')
+    exit(-1)
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 3!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+dependency_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"
+}
+licenses_describe_map = {
+    "Apache 2.0 License":
+        """The following components are provided under the Apache License. See project link for details.
+The text of each license is the standard Apache 2.0 license.
+""",
+    "MIT License": """The following components are provided under the MIT License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "BSD License": """The following components are provided under a BSD license. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CC0-1.0 License": """The following components are provided under the CC0-1.0 License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CDDL License": """The following components are provided under the CDDL License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Eclipse Public License": """The following components are provided under the Eclipse Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Public Domain License": """The following components are provided under the Public Domain License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Mozilla Public License Version 2.0": """The following components are provided under the Mozilla Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Unicode License": """The following components are provided under the Unicode License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Go License": """The following components are provided under the Go License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+"""
+}
+licenses_map = {
+    "Apache 2.0 License": [],
+    "MIT License": [],
+    "BSD License": [],
+    "CC0-1.0 License": [],
+    "CDDL License": [],
+    "Eclipse Public License": [],
+    "Public Domain License": [],
+    "Mozilla Public License Version 2.0": [],
+    "Unicode License": [],
+    "Go License": [],
+    "Other License": []
+}
+
+for _ in licenses:
+    if "org.apache.seatunnel" in _:
+        continue
+    if "Unknown license" in _:
+        for k, v in dependency_licenses_map.items():
+            if k in _:
+                _ = v
+                break
+    _ = _.strip(" ")
+    if _ == '\n':
+        continue
+    if '(' not in _ or ')' not in _:
+        continue
+    # (Apache 2.0 License) Spark Project Tags (org.apache.spark:spark-tags_2.11:2.4.0 - http://spark.apache.org/)
+    items = _.split(") ")
+    if len(items) != 2:
+        continue
+    type = items[0]
+    l = None
+    for k in licenses_keyword_map:
+        for keyword in licenses_keyword_map[k]:
+            if keyword in type:
+                l = k
+                break
+    if l is None:
+        l = "Other License"
+    licenses_map[l].append(_.strip('\n'))
+
+if len(licenses_map["Other License"]) != 0:
+    for other_license in licenses_map["Other License"]:
+        print(other_license)
+    print("There are some licenses are unknown!")
+    print("Please confirm the license by finding LICENSE file in the corresponding Jar file and maintain it in the unknown_licenses_map instance.")

Review comment:
       There is no `unknown_licenses_map` instance, please reword the message to help contributor about how to deal with unknown licenses




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r814895613



##########
File path: seatunnel-dist/release-docs/LICENSE
##########
@@ -211,115 +211,163 @@ licenses.
 
 
 ========================================================================
-Apache 2.0 licenses
+Apache 2.0 License
 ========================================================================
 
 The following components are provided under the Apache License. See project link for details.
 The text of each license is the standard Apache 2.0 license.
 
-     (Apache 2) org.roaringbitmap:RoaringBitmap (org.roaringbitmap:RoaringBitmap:0.9.0 - https://github.com/RoaringBitmap/RoaringBitmap)
-     (Apache 2) org.roaringbitmap:shims (org.roaringbitmap:shims:0.9.0 - https://github.com/RoaringBitmap/RoaringBitmap)
-     (The Apache Software License, Version 2.0) SparseBitSet (com.zaxxer:SparseBitSet:1.2 - https://github.com/brettwooldridge/SparseBitSet)
-     (The Apache Software License, Version 2.0) ASM based accessors helper used by json-smart (net.minidev:accessors-smart:1.2 - http://www.minidev.net/)
      (The Apache Software License, Version 2.0) Aggregate Designer Algorithm (net.hydromatic:aggdesigner-algorithm:6.0 - http://github.com/julianhyde/aggdesigner/aggdesigner-algorithm)
      (The Apache Software License, Version 2.0) aggs-matrix-stats (org.elasticsearch.plugin:aggs-matrix-stats-client:6.3.1 - https://github.com/elastic/elasticsearch)
      (Apache License 2.0) aircompressor (io.airlift:aircompressor:0.10 - http://github.com/airlift/aircompressor)
      (Apache License 2.0) airline (io.airlift:airline:0.7 - https://github.com/airlift/airline)
-     (The Apache Software License, Version 2.0) IntelliJ IDEA Annotations (org.jetbrains:annotations:13.0 - http://www.jetbrains.org)
-     (The Apache License, Version 2.0) org.apiguardian:apiguardian-api (org.apiguardian:apiguardian-api:1.1.0 - https://github.com/apiguardian-team/apiguardian)
-     (The Apache Software License, Version 2.0) flink-shaded-asm-7 (org.apache.flink:flink-shaded-asm-7:7.1-13.0 - http://flink.apache.org/flink-shaded-asm-7)
-     (Apache License 2.0) Asynchronous Http Client (org.asynchttpclient:async-http-client:2.5.3 - http://github.com/AsyncHttpClient/async-http-client/async-http-client)
-     (Apache License 2.0) Asynchronous Http Client Netty Utils (org.asynchttpclient:async-http-client-netty-utils:2.5.3 - http://github.com/AsyncHttpClient/async-http-client/async-http-client-netty-utils)
-     (Apache License, Version 2.0) Apache Yetus - Audience Annotations (org.apache.yetus:audience-annotations:0.5.0 - https://yetus.apache.org/audience-annotations)
-     (Apache License, Version 2.0) Apache Yetus - Audience Annotations (org.apache.yetus:audience-annotations:0.7.0 - https://yetus.apache.org/audience-annotations)
-     (The Apache License, Version 2.0) Apache Calcite Avatica (org.apache.calcite.avatica:avatica-core:1.20.0 - https://calcite.apache.org/avatica)
+     (Apache License, Version 2.0) akka-actor (com.typesafe.akka:akka-actor_2.11:2.5.21 - http://akka.io/)
+     (Apache License, Version 2.0) akka-protobuf (com.typesafe.akka:akka-protobuf_2.11:2.5.21 - http://akka.io/)
+     (Apache License, Version 2.0) akka-slf4j (com.typesafe.akka:akka-slf4j_2.11:2.5.21 - http://akka.io/)
+     (Apache License, Version 2.0) akka-stream (com.typesafe.akka:akka-stream_2.11:2.5.21 - http://akka.io/)
+     (Apache License, Version 2.0) An open source Java toolkit for Amazon S3 (net.java.dev.jets3t:jets3t:0.9.0 - http://www.jets3t.org)
+     (The Apache Software License, Version 2.0) Apache Avro IPC (org.apache.avro:avro-ipc:1.7.7 - http://avro.apache.org)
+     (The Apache Software License, Version 2.0) Apache Avro Mapred API (org.apache.avro:avro-mapred:1.8.2 - http://avro.apache.org/avro-mapred)
+     (The Apache License, Version 2.0) Apache Calcite Avatica (org.apache.calcite.avatica:avatica-core:1.17.0 - https://calcite.apache.org/avatica)
      (The Apache License, Version 2.0) Apache Calcite Avatica Metrics (org.apache.calcite.avatica:avatica-metrics:1.20.0 - https://calcite.apache.org/avatica)
+     (Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.9.3 - https://commons.apache.org/proper/commons-beanutils/)
+     (Apache License, Version 2.0) Apache Commons CLI (commons-cli:commons-cli:1.3.1 - http://commons.apache.org/proper/commons-cli/)
+     (Apache License, Version 2.0) Apache Commons Collections (commons-collections:commons-collections:3.2.2 - http://commons.apache.org/collections/)

Review comment:
       @CalvinKirs I will ensure the licenses are sorted to avoid large diff info to reduce the pressure of code reviewer. And also create a another [PR](https://github.com/apache/incubator-seatunnel/pull/1337) to sort them first, so that we can focus on the script. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] kezhenxu94 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r817362175



##########
File path: pom.xml
##########
@@ -789,6 +790,51 @@
                     <artifactId>build-helper-maven-plugin</artifactId>
                     <version>${maven-helper-plugin.version}</version>
                 </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>license-maven-plugin</artifactId>
+                    <version>${maven-license-maven-plugin}</version>
+                    <executions>
+                        <execution>
+                            <id>download</id>
+                            <goals>
+                                <goal>download-licenses</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                    <configuration>
+                        <outputDirectory>${project.basedir}/seatunnel-dist/target/</outputDirectory>
+                        <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
+                        <sortArtifactByName>true</sortArtifactByName>
+                        <useMissingFile>false</useMissingFile>
+                        <addJavaLicenseAfterPackage>true</addJavaLicenseAfterPackage>
+                    </configuration>
+                </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>exec-maven-plugin</artifactId>
+                    <version>${exec-maven-plugin.version}</version>
+                    <executions>
+                        <execution>
+                            <id>license</id>
+                            <phase>package</phase>
+                            <goals>
+                                <goal>exec</goal>
+                            </goals>
+                            <configuration>

Review comment:
       @asdf2014 Can you add a dedicated property to control this goal, using `-Dmaven-exec-skip=false/true` results in either none or all goals are executed, you can see an example in `tools/dependencies/checkLicense.sh` where we want to execute `exec` plugin but we don't need to execute this goal (copy license file)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] CalvinKirs commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r806492044



##########
File path: seatunnel-dist/release-docs/LICENSE
##########
@@ -590,161 +524,162 @@ The text of each license is the standard Apache 2.0 license.
      (Apache 2) Lucene Spatial Extras (org.apache.lucene:lucene-spatial-extras:7.3.1 - http://lucene.apache.org/lucene-parent/lucene-spatial-extras)
      (Apache 2) Lucene Suggest (org.apache.lucene:lucene-suggest:7.3.1 - http://lucene.apache.org/lucene-parent/lucene-suggest)
      (The Apache Software License, Version 2.0) LZ4 and xxHash (net.jpountz.lz4:lz4:1.3.0 - https://github.com/jpountz/lz4-java)
-     (The Apache Software License, Version 2.0) LZ4 and xxHash (org.lz4:lz4-java:1.4.0 - https://github.com/lz4/lz4-java)
-     (The Apache Software License, Version 2.0) LZ4 and xxHash (org.lz4:lz4-java:1.4.1 - https://github.com/lz4/lz4-java)
-     (The Apache Software License, Version 2.0) LZ4 and xxHash (org.lz4:lz4-java:1.6.0 - https://github.com/lz4/lz4-java)
-     (The Apache Software License, Version 2.0) LZ4 and xxHash (org.lz4:lz4-java:1.7.1 - https://github.com/lz4/lz4-java)
      (The Apache Software License, Version 2.0) Maven Aether Provider (org.apache.maven:maven-aether-provider:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-aether-provider)
      (Apache License, Version 2.0) Maven Artifact (org.apache.maven:maven-artifact:3.6.0 - https://maven.apache.org/ref/3.6.0/maven-artifact/)
-     (The Apache Software License, Version 2.0) Maven Model Builder (org.apache.maven:maven-model-builder:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-model-builder)
      (The Apache Software License, Version 2.0) Maven Model (org.apache.maven:maven-model:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-model)
+     (The Apache Software License, Version 2.0) Maven Model Builder (org.apache.maven:maven-model-builder:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-model-builder)
      (The Apache Software License, Version 2.0) Maven Repository Metadata Model (org.apache.maven:maven-repository-metadata:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-repository-metadata)
-     (The Apache Software License, Version 2.0) Maven Settings Builder (org.apache.maven:maven-settings-builder:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-settings-builder)
      (The Apache Software License, Version 2.0) Maven Settings (org.apache.maven:maven-settings:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-settings)
-     (Apache License, Version 2.0) com.yahoo.datasketches:memory (com.yahoo.datasketches:memory:0.9.0 - https://datasketches.github.io/memory/)
+     (The Apache Software License, Version 2.0) Maven Settings Builder (org.apache.maven:maven-settings-builder:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-settings-builder)
      (Apache License 2.0) Metrics Core (io.dropwizard.metrics:metrics-core:3.1.5 - http://metrics.codahale.com/metrics-core/)
-     (Apache License 2.0) Metrics Core (io.dropwizard.metrics:metrics-core:3.2.1 - http://metrics.codahale.com/metrics-core/)
-     (Apache License 2.0) Metrics Core (io.dropwizard.metrics:metrics-core:4.0.0 - http://metrics.dropwizard.io/metrics-core)
-     (The Apache Software License, Version 2.0) MongoDB Java Driver (org.mongodb:mongo-java-driver:3.4.2 - http://www.mongodb.org)
      (Apache-2.0) mongo-spark-connector (org.mongodb.spark:mongo-spark-connector_2.11:2.2.0 - http://github.com/mongo-spark)
+     (The Apache Software License, Version 2.0) MongoDB Java Driver (org.mongodb:mongo-java-driver:3.4.2 - http://www.mongodb.org)
      (Apache 2.0) Moshi (com.squareup.moshi:moshi:1.8.0 - https://github.com/square/moshi/moshi)
+     (APL2) msgpack-core (org.msgpack:msgpack-core:0.9.0 - https://msgpack.org/)
+     (Apache License, Version 2) Neo4j Java Driver (org.neo4j.driver:neo4j-java-driver:4.3.4 - https://github.com/neo4j/neo4j-java-driver/neo4j-java-driver)
      (The Apache Software License, Version 2.0) neo4j-connector-apache-spark-2.4.8 (org.neo4j:neo4j-connector-apache-spark_2.11:4.1.0_for_spark_2.4 - https://github.com/neo4j-contrib/neo4j-spark-connector/neo4j-connector-apache-spark_2.12)
      (The Apache Software License, Version 2.0) neo4j-connector-apache-spark-common (org.neo4j:neo4j-connector-apache-spark_2.12_common:4.1.0 - https://github.com/neo4j-contrib/neo4j-spark-connector/neo4j-connector-apache-spark_2.12_common)
-     (The Apache Software License, Version 2.0) Neo4j Cypher DSL (Core) (org.neo4j:neo4j-cypher-dsl:2020.1.4 - https://neo4j-contrib.github.io/cypher-dsl/neo4j-cypher-dsl)
-     (Apache License, Version 2) Neo4j Java Driver (org.neo4j.driver:neo4j-java-driver:4.3.4 - https://github.com/neo4j/neo4j-java-driver/neo4j-java-driver)
+     (The Apache License, Version 2.0) net.thisptr:jackson-jq (net.thisptr:jackson-jq:0.0.10 - https://github.com/eiiches/jackson-jq/jackson-jq)
      (Apache License, Version 2.0) Netty (io.netty:netty:3.10.5.Final - http://netty.io/)
-     (Apache License, Version 2.0) Netty (io.netty:netty:3.10.6.Final - http://netty.io/)
-     (Apache License, Version 2.0) Netty (io.netty:netty:3.9.9.Final - http://netty.io/)
+     (Apache 2) Netty Reactive Streams Implementation (com.typesafe.netty:netty-reactive-streams:2.0.0 - https://github.com/playframework/netty-reactive-streams/netty-reactive-streams)
      (Apache License, Version 2.0) Netty/All-in-One (io.netty:netty-all:4.0.23.Final - http://netty.io/netty-all/)
-     (Apache License, Version 2.0) Netty/All-in-One (io.netty:netty-all:4.1.17.Final - http://netty.io/netty-all/)
      (Apache License, Version 2.0) Netty/Buffer (io.netty:netty-buffer:4.1.16.Final - http://netty.io/netty-buffer/)
-     (Apache License, Version 2.0) Netty/Buffer (io.netty:netty-buffer:4.1.63.Final - https://netty.io/netty-buffer/)
      (Apache License, Version 2.0) Netty/Codec (io.netty:netty-codec:4.1.16.Final - http://netty.io/netty-codec/)
-     (Apache License, Version 2.0) Netty/Codec/HTTP (io.netty:netty-codec-http:4.1.16.Final - http://netty.io/netty-codec-http/)
-     (Apache License, Version 2.0) Netty/Codec/HTTP (io.netty:netty-codec-http:4.1.63.Final - https://netty.io/netty-codec-http/)
-     (Apache License, Version 2.0) Netty/Codec (io.netty:netty-codec:4.1.63.Final - https://netty.io/netty-codec/)
      (Apache License, Version 2.0) Netty/Codec/DNS (io.netty:netty-codec-dns:4.1.29.Final - http://netty.io/netty-codec-dns/)
+     (Apache License, Version 2.0) Netty/Codec/HTTP (io.netty:netty-codec-http:4.1.16.Final - http://netty.io/netty-codec-http/)
      (Apache License, Version 2.0) Netty/Codec/Socks (io.netty:netty-codec-socks:4.1.29.Final - http://netty.io/netty-codec-socks/)
      (Apache License, Version 2.0) Netty/Common (io.netty:netty-common:4.1.16.Final - http://netty.io/netty-common/)
-     (Apache License, Version 2.0) Netty/Common (io.netty:netty-common:4.1.63.Final - https://netty.io/netty-common/)
      (Apache License, Version 2.0) Netty/Handler (io.netty:netty-handler:4.1.16.Final - http://netty.io/netty-handler/)
-     (Apache License, Version 2.0) Netty/Handler (io.netty:netty-handler:4.1.63.Final - https://netty.io/netty-handler/)
      (Apache License, Version 2.0) Netty/Handler/Proxy (io.netty:netty-handler-proxy:4.1.29.Final - http://netty.io/netty-handler-proxy/)
-     (Apache 2) Netty Reactive Streams Implementation (com.typesafe.netty:netty-reactive-streams:2.0.0 - https://github.com/playframework/netty-reactive-streams/netty-reactive-streams)
      (Apache License, Version 2.0) Netty/Resolver (io.netty:netty-resolver:4.1.16.Final - http://netty.io/netty-resolver/)
-     (Apache License, Version 2.0) Netty/Resolver (io.netty:netty-resolver:4.1.63.Final - https://netty.io/netty-resolver/)
      (Apache License, Version 2.0) Netty/Resolver/DNS (io.netty:netty-resolver-dns:4.1.29.Final - http://netty.io/netty-resolver-dns/)
      (Apache License, Version 2.0) Netty/Transport (io.netty:netty-transport:4.1.16.Final - http://netty.io/netty-transport/)
-     (Apache License, Version 2.0) Netty/Transport (io.netty:netty-transport:4.1.63.Final - https://netty.io/netty-transport/)
+     (Apache License, Version 2.0) Netty/Transport/Native/Epoll (io.netty:netty-transport-native-epoll:4.1.29.Final - http://netty.io/netty-transport-native-epoll/)
      (Apache License, Version 2.0) Netty/Transport/Native/Unix/Common (io.netty:netty-transport-native-unix-common:4.1.29.Final - http://netty.io/netty-transport-native-unix-common/)
      (The Apache Software License, Version 2.0) Nimbus JOSE+JWT (com.nimbusds:nimbus-jose-jwt:4.41.1 - https://bitbucket.org/connect2id/nimbus-jose-jwt)
-     (Apache 2) Objenesis (org.objenesis:objenesis:2.5.1 - http://objenesis.org)
-     (Apache 2.0) OkHttp (com.squareup.okhttp:okhttp:1.0.2 - https://github.com/square/okhttp/okhttp)
-     (Apache 2.0) OkHttp (com.squareup.okhttp:okhttp:2.4.0 - https://github.com/square/okhttp/okhttp)
-     (The Apache Software License, Version 2.0) okhttp (com.squareup.okhttp3:okhttp:4.9.1 - https://square.github.io/okhttp/)
-     (Apache 2.0) Okio (com.squareup.okio:okio:1.4.0 - https://github.com/square/okio/okio)
-     (The Apache Software License, Version 2.0) Okio (com.squareup.okio:okio:2.8.0 - https://github.com/square/okio/)
+     (Apache 2) Objenesis (org.objenesis:objenesis:2.1 - http://objenesis.org)
+     (The Apache Software License, Version 2.0) okhttp-logging-interceptor (com.squareup.okhttp3:logging-interceptor:4.9.1 - https://square.github.io/okhttp/)
      (Apache 2) opencsv (com.opencsv:opencsv:4.6 - http://opencsv.sf.net)
-     (Apache License, Version 2.0) ORC Core (org.apache.orc:orc-core:1.5.6 - http://orc.apache.org/orc-core)
-     (Apache License, Version 2.0) ORC Shims (org.apache.orc:orc-shims:1.5.6 - http://orc.apache.org/orc-shims)
-     (The Apache Software License, Version 2.0) Jackson module: Paranamer (com.fasterxml.jackson.module:jackson-module-paranamer:2.7.9 - https://github.com/FasterXML/jackson-modules-base)
-     (The Apache Software License, Version 2.0) Apache Parquet Column (org.apache.parquet:parquet-column:1.10.0 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Column (org.apache.parquet:parquet-column:1.11.1 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Common (org.apache.parquet:parquet-common:1.10.0 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Common (org.apache.parquet:parquet-common:1.11.1 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Encodings (org.apache.parquet:parquet-encoding:1.10.0 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Encodings (org.apache.parquet:parquet-encoding:1.11.1 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Format (org.apache.parquet:parquet-format:2.4.0 - http://parquet.apache.org/)
-     (The Apache Software License, Version 2.0) Apache Parquet Format Structures (org.apache.parquet:parquet-format-structures:1.11.1 - https://parquet.apache.org/)
-     (The Apache Software License, Version 2.0) Apache Parquet Hadoop (org.apache.parquet:parquet-hadoop:1.10.0 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Hadoop (org.apache.parquet:parquet-hadoop:1.11.1 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Jackson (org.apache.parquet:parquet-jackson:1.10.0 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Jackson (org.apache.parquet:parquet-jackson:1.11.1 - https://parquet.apache.org)
+     (Apache License, Version 2.0) ORC Core (org.apache.orc:orc-core:1.5.2 - http://orc.apache.org/orc-core)
+     (Apache License, Version 2.0) ORC MapReduce (org.apache.orc:orc-mapreduce:1.5.2 - http://orc.apache.org/orc-mapreduce)
+     (Apache License, Version 2.0) ORC Shims (org.apache.orc:orc-shims:1.5.2 - http://orc.apache.org/orc-shims)
+     (The Apache License, Version 2.0) org.apiguardian:apiguardian-api (org.apiguardian:apiguardian-api:1.1.0 - https://github.com/apiguardian-team/apiguardian)
+     (The Apache Software License, Version 2.0) org.gridkit.lab::jvm-attach-api (org.gridkit.lab:jvm-attach-api:1.5 - http://code.google.com/p/gridkit/jvm-attach-api)
+     (The Apache License, Version 2.0) org.jetbrains.kotlin:kotlin-stdlib (org.jetbrains.kotlin:kotlin-stdlib:1.4.10 - https://kotlinlang.org/)
+     (The Apache License, Version 2.0) org.jetbrains.kotlin:kotlin-stdlib-common (org.jetbrains.kotlin:kotlin-stdlib-common:1.4.0 - https://kotlinlang.org/)
+     (The Apache License, Version 2.0) org.jetbrains.kotlin:kotlin-stdlib-jdk7 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.10 - https://kotlinlang.org/)
+     (The Apache License, Version 2.0) org.jetbrains.kotlin:kotlin-stdlib-jdk8 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.10 - https://kotlinlang.org/)
+     (Apache 2) org.roaringbitmap:RoaringBitmap (org.roaringbitmap:RoaringBitmap:0.9.0 - https://github.com/RoaringBitmap/RoaringBitmap)
+     (Apache 2) org.roaringbitmap:shims (org.roaringbitmap:shims:0.9.0 - https://github.com/RoaringBitmap/RoaringBitmap)
+     (Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)
+     (The Apache Software License, Version 2.0) parent-join (org.elasticsearch.plugin:parent-join-client:6.3.1 - https://github.com/elastic/elasticsearch)
+     (The Apache Software License, Version 2.0) percolator (org.elasticsearch.plugin:percolator-client:6.3.1 - https://github.com/elastic/elasticsearch)
+     (The Apache Software License, Version 2.0) Phoenix - Spark (org.apache.phoenix:phoenix-spark:5.0.0-HBase-2.0 - http://www.apache.org/phoenix/phoenix-spark/)
+     (The Apache Software License, Version 2.0) Phoenix Core (org.apache.phoenix:phoenix-core:5.0.0-HBase-2.0 - http://www.apache.org/phoenix/phoenix-core/)
      (Apache-2.0) play-mailer (com.typesafe.play:play-mailer_2.11:7.0.2 - https://github.com/playframework/play-mailer)
-     (The Apache Software License, Version 2.0) Plexus Interpolation API (org.codehaus.plexus:plexus-interpolation:1.19 - http://plexus.codehaus.org/plexus-components/plexus-interpolation)
      (Apache License, Version 2.0) Plexus Common Utilities (org.codehaus.plexus:plexus-utils:3.1.0 - http://codehaus-plexus.github.io/plexus-utils/)
-     (Apache License, Version 2.0) Apache POI (org.apache.poi:poi:4.1.2 - http://poi.apache.org/)
-     (Apache License, Version 2.0) Apache POI (org.apache.poi:poi-ooxml:4.1.2 - http://poi.apache.org/)
-     (Apache License, Version 2.0) Apache POI (org.apache.poi:poi-ooxml-schemas:4.1.2 - http://poi.apache.org/)
+     (The Apache Software License, Version 2.0) Plexus Interpolation API (org.codehaus.plexus:plexus-interpolation:1.19 - http://plexus.codehaus.org/plexus-components/plexus-interpolation)
+     (The Apache Software License, Version 2.0) project ':json-path' (com.jayway.jsonpath:json-path:2.3.0 - https://github.com/jayway/JsonPath)
+     (The Apache Software License, Version 2.0) rank-eval (org.elasticsearch.plugin:rank-eval-client:6.3.1 - https://github.com/elastic/elasticsearch)
+     (The Apache Software License, Version 2.0) reindex (org.elasticsearch.plugin:reindex-client:6.3.1 - https://github.com/elastic/elasticsearch)
      (Apache-2.0) resilience4j (io.github.resilience4j:resilience4j-bulkhead:1.3.1 - https://github.com/resilience4j/resilience4j)
-     (Apache-2.0) resilience4j (io.github.resilience4j:resilience4j-core:1.3.1 - https://github.com/resilience4j/resilience4j)
+     (The Apache Software License, Version 2.0) rest (org.elasticsearch.client:elasticsearch-rest-client:6.3.1 - https://github.com/elastic/elasticsearch)
+     (The Apache Software License, Version 2.0) rest-high-level (org.elasticsearch.client:elasticsearch-rest-high-level-client:6.3.1 - https://github.com/elastic/elasticsearch)
      (The Apache Software License, Version 2.0) Retrofit (com.squareup.retrofit2:retrofit:2.9.0 - https://github.com/square/retrofit)
-     (Apache-2.0) scala-xml (org.scala-lang.modules:scala-xml_2.11:1.3.0 - http://www.scala-lang.org/)
+     (Apache 2) RoaringBitmap (org.roaringbitmap:RoaringBitmap:0.5.11 - https://github.com/lemire/RoaringBitmap)
      (Apache 2) scalaj-http (org.scalaj:scalaj-http_2.11:2.3.0 - http://github.com/scalaj/scalaj-http)
-     (Apache License Version 2.0) SIGAR (org.hyperic:sigar:1.6.5.132 - http://sigar.hyperic.com/)
-     (Apache License, Version 2.0) com.yahoo.datasketches:sketches-core (com.yahoo.datasketches:sketches-core:0.9.0 - https://datasketches.github.io/sketches-core/)
+     (The Apache License, Version 2.0) seatunnel-api-base (org.apache.seatunnel:seatunnel-api-base:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-apis/seatunnel-api-base)
+     (The Apache License, Version 2.0) seatunnel-api-flink (org.apache.seatunnel:seatunnel-api-flink:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-apis/seatunnel-api-flink)
+     (The Apache License, Version 2.0) seatunnel-api-spark (org.apache.seatunnel:seatunnel-api-spark:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-apis/seatunnel-api-spark)
+     (The Apache License, Version 2.0) seatunnel-common (org.apache.seatunnel:seatunnel-common:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-common)
+     (The Apache License, Version 2.0) seatunnel-config (org.apache.seatunnel:seatunnel-config:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-config)
+     (The Apache License, Version 2.0) seatunnel-connector-flink-console (org.apache.seatunnel:seatunnel-connector-flink-console:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-connectors/seatunnel-connector-flink-console)
+     (The Apache License, Version 2.0) seatunnel-connector-flink-doris (org.apache.seatunnel:seatunnel-connector-flink-doris:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-connectors/seatunnel-connector-flink-doris)

Review comment:
       these unwanted

##########
File path: bin/license.py
##########
@@ -0,0 +1,364 @@
+#!/usr/bin/env python3
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import sys
+
+if len(sys.argv) - 1 != 2:
+    print("The length of arguments should be 2!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"

Review comment:
       I don't know Py, but I'd like to know how this piece is handled, it looks like you just manually confirmed the current unknow.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] CalvinKirs commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r806493140



##########
File path: bin/license.py
##########
@@ -0,0 +1,364 @@
+#!/usr/bin/env python3
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import sys
+
+if len(sys.argv) - 1 != 2:
+    print("The length of arguments should be 2!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"

Review comment:
       I don't know Py, but I'd like to know how this piece is handled, it looks like you just manually confirmed the current unknow.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r808064603



##########
File path: docs/en/developement/NewLicenseGuide.md
##########
@@ -2,9 +2,23 @@
 
 If you have any new Jar binary package adding in you PR, you need to follow the steps below to notice license
 
-1. declared in `tools/dependencies/konw-dependencies.txt`,
-2. Add the corresponding License file under `seatunnel-dist/release-docs/licenses`, if it is a standard Apache License, it does not need to be added.
+1. declared in `tools/dependencies/konw-dependencies.txt`

Review comment:
       Hi @morningman, thanks for your comment. I just resolved this in another PR due to it is not strong relevant, FYI, https://github.com/apache/incubator-seatunnel/pull/1263




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r809883572



##########
File path: bin/license.py
##########
@@ -0,0 +1,381 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if sys.version_info.major < 3:
+    print('At least Python3 is required!')
+    print('Please refer to the https://www.python.org/downloads/ documentation if you do not have a right Python env.')
+    exit(-1)
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 3!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"
+}
+licenses_describe_map = {
+    "Apache 2.0 License":
+        """The following components are provided under the Apache License. See project link for details.
+The text of each license is the standard Apache 2.0 license.
+""",
+    "MIT License": """The following components are provided under the MIT License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "BSD License": """The following components are provided under a BSD license. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CC0-1.0 License": """The following components are provided under the CC0-1.0 License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CDDL License": """The following components are provided under the CDDL License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Eclipse Public License": """The following components are provided under the Eclipse Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Public Domain License": """The following components are provided under the Public Domain License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Mozilla Public License Version 2.0": """The following components are provided under the Mozilla Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Unicode License": """The following components are provided under the Unicode License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Go License": """The following components are provided under the Go License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Other License": """The following components are provided under some minority Licenses. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.

Review comment:
       BTW, it would not be added to LICENSE file since all of dependencies with unknown license have been taken care.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r809896161



##########
File path: bin/license.py
##########
@@ -0,0 +1,381 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if sys.version_info.major < 3:
+    print('At least Python3 is required!')
+    print('Please refer to the https://www.python.org/downloads/ documentation if you do not have a right Python env.')
+    exit(-1)
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 3!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"
+}
+licenses_describe_map = {
+    "Apache 2.0 License":
+        """The following components are provided under the Apache License. See project link for details.
+The text of each license is the standard Apache 2.0 license.
+""",
+    "MIT License": """The following components are provided under the MIT License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "BSD License": """The following components are provided under a BSD license. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CC0-1.0 License": """The following components are provided under the CC0-1.0 License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CDDL License": """The following components are provided under the CDDL License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Eclipse Public License": """The following components are provided under the Eclipse Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Public Domain License": """The following components are provided under the Public Domain License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Mozilla Public License Version 2.0": """The following components are provided under the Mozilla Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Unicode License": """The following components are provided under the Unicode License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Go License": """The following components are provided under the Go License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Other License": """The following components are provided under some minority Licenses. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.

Review comment:
       @kezhenxu94 It's done, you can go check the latest version, thanks a lot.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r809866971



##########
File path: tools/dependencies/known-dependencies.txt
##########
@@ -214,13 +217,13 @@ hadoop-yarn-server-common-2.6.5.jar
 hbase-annotations-2.0.0.jar
 hbase-client-2.0.0.jar
 hbase-client-2.1.0.jar
-hbase-common-2.0.0.jar
 hbase-common-2.0.0-tests.jar
+hbase-common-2.0.0.jar
 hbase-common-2.1.0.jar
-hbase-hadoop2-compat-2.0.0.jar
-hbase-hadoop2-compat-2.1.0.jar
 hbase-hadoop-compat-2.0.0.jar
 hbase-hadoop-compat-2.1.0.jar
+hbase-hadoop2-compat-2.0.0.jar

Review comment:
       @CalvinKirs It's done, FYI, https://github.com/apache/incubator-seatunnel/pull/1286




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#issuecomment-1047807648


   > What did I miss. I didn't find any running of this script in CIJob.
   
   FYI, https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r801532476


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r814886222



##########
File path: bin/license.py
##########
@@ -0,0 +1,385 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if sys.version_info.major < 3:
+    print('At least Python3 is required!')
+    print('Please refer to the https://www.python.org/downloads/ documentation if you do not have a right Python env.')
+    exit(-1)
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 3!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {

Review comment:
       @CalvinKirs It's done.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r811957229



##########
File path: seatunnel-dist/release-docs/LICENSE
##########
@@ -211,115 +211,163 @@ licenses.
 
 
 ========================================================================
-Apache 2.0 licenses
+Apache 2.0 License
 ========================================================================
 
 The following components are provided under the Apache License. See project link for details.
 The text of each license is the standard Apache 2.0 license.
 
-     (Apache 2) org.roaringbitmap:RoaringBitmap (org.roaringbitmap:RoaringBitmap:0.9.0 - https://github.com/RoaringBitmap/RoaringBitmap)
-     (Apache 2) org.roaringbitmap:shims (org.roaringbitmap:shims:0.9.0 - https://github.com/RoaringBitmap/RoaringBitmap)
-     (The Apache Software License, Version 2.0) SparseBitSet (com.zaxxer:SparseBitSet:1.2 - https://github.com/brettwooldridge/SparseBitSet)
-     (The Apache Software License, Version 2.0) ASM based accessors helper used by json-smart (net.minidev:accessors-smart:1.2 - http://www.minidev.net/)
      (The Apache Software License, Version 2.0) Aggregate Designer Algorithm (net.hydromatic:aggdesigner-algorithm:6.0 - http://github.com/julianhyde/aggdesigner/aggdesigner-algorithm)
      (The Apache Software License, Version 2.0) aggs-matrix-stats (org.elasticsearch.plugin:aggs-matrix-stats-client:6.3.1 - https://github.com/elastic/elasticsearch)
      (Apache License 2.0) aircompressor (io.airlift:aircompressor:0.10 - http://github.com/airlift/aircompressor)
      (Apache License 2.0) airline (io.airlift:airline:0.7 - https://github.com/airlift/airline)
-     (The Apache Software License, Version 2.0) IntelliJ IDEA Annotations (org.jetbrains:annotations:13.0 - http://www.jetbrains.org)
-     (The Apache License, Version 2.0) org.apiguardian:apiguardian-api (org.apiguardian:apiguardian-api:1.1.0 - https://github.com/apiguardian-team/apiguardian)
-     (The Apache Software License, Version 2.0) flink-shaded-asm-7 (org.apache.flink:flink-shaded-asm-7:7.1-13.0 - http://flink.apache.org/flink-shaded-asm-7)
-     (Apache License 2.0) Asynchronous Http Client (org.asynchttpclient:async-http-client:2.5.3 - http://github.com/AsyncHttpClient/async-http-client/async-http-client)
-     (Apache License 2.0) Asynchronous Http Client Netty Utils (org.asynchttpclient:async-http-client-netty-utils:2.5.3 - http://github.com/AsyncHttpClient/async-http-client/async-http-client-netty-utils)
-     (Apache License, Version 2.0) Apache Yetus - Audience Annotations (org.apache.yetus:audience-annotations:0.5.0 - https://yetus.apache.org/audience-annotations)
-     (Apache License, Version 2.0) Apache Yetus - Audience Annotations (org.apache.yetus:audience-annotations:0.7.0 - https://yetus.apache.org/audience-annotations)
-     (The Apache License, Version 2.0) Apache Calcite Avatica (org.apache.calcite.avatica:avatica-core:1.20.0 - https://calcite.apache.org/avatica)
+     (Apache License, Version 2.0) akka-actor (com.typesafe.akka:akka-actor_2.11:2.5.21 - http://akka.io/)
+     (Apache License, Version 2.0) akka-protobuf (com.typesafe.akka:akka-protobuf_2.11:2.5.21 - http://akka.io/)
+     (Apache License, Version 2.0) akka-slf4j (com.typesafe.akka:akka-slf4j_2.11:2.5.21 - http://akka.io/)
+     (Apache License, Version 2.0) akka-stream (com.typesafe.akka:akka-stream_2.11:2.5.21 - http://akka.io/)
+     (Apache License, Version 2.0) An open source Java toolkit for Amazon S3 (net.java.dev.jets3t:jets3t:0.9.0 - http://www.jets3t.org)
+     (The Apache Software License, Version 2.0) Apache Avro IPC (org.apache.avro:avro-ipc:1.7.7 - http://avro.apache.org)
+     (The Apache Software License, Version 2.0) Apache Avro Mapred API (org.apache.avro:avro-mapred:1.8.2 - http://avro.apache.org/avro-mapred)
+     (The Apache License, Version 2.0) Apache Calcite Avatica (org.apache.calcite.avatica:avatica-core:1.17.0 - https://calcite.apache.org/avatica)
      (The Apache License, Version 2.0) Apache Calcite Avatica Metrics (org.apache.calcite.avatica:avatica-metrics:1.20.0 - https://calcite.apache.org/avatica)
+     (Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.9.3 - https://commons.apache.org/proper/commons-beanutils/)
+     (Apache License, Version 2.0) Apache Commons CLI (commons-cli:commons-cli:1.3.1 - http://commons.apache.org/proper/commons-cli/)
+     (Apache License, Version 2.0) Apache Commons Collections (commons-collections:commons-collections:3.2.2 - http://commons.apache.org/collections/)

Review comment:
       I believe it wouldn’t be too much next time




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r809817341



##########
File path: bin/license.py
##########
@@ -0,0 +1,376 @@
+#!/usr/bin/env python3

Review comment:
       @zhongjiajie It's done, you can go check the latest version, thanks a lot.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r807530694



##########
File path: docs/en/developement/NewLicenseGuide.md
##########
@@ -2,9 +2,19 @@
 
 If you have any new Jar binary package adding in you PR, you need to follow the steps below to notice license
 
-1. declared in `tools/dependencies/konw-dependencies.txt`,
-2. Add the corresponding License file under `seatunnel-dist/release-docs/licenses`, if it is a standard Apache License, it does not need to be added.
+1. declared in `tools/dependencies/konw-dependencies.txt`
+
+2. Add the corresponding License file under `seatunnel-dist/release-docs/licenses`, if it is a standard Apache License, it does not need to be added
+
 3. Add the corresponding statement in `seatunnel-dist/release-docs/LICENSE`
+
+   ```bash
+   # At the same time, you can also use the script to assist the inspection.
+   # Because it only uses the Python native APIs and does not depend on any third-party libraries, it can run using the original Python environment.
+   # Please refer to the documentation if you do not have a Python env: https://www.python.org/downloads/
+   python3 bin/license.py seatunnel-dist/target/THIRD-PARTY.txt seatunnel-dist/release-docs/LICENSE true

Review comment:
       I have described in the related issues, you can get the details from there.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] kezhenxu94 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r815250610



##########
File path: bin/license.py
##########
@@ -0,0 +1,376 @@
+#!/usr/bin/env python3
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 2!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"
+}
+licenses_describe_map = {
+    "Apache 2.0 License":
+        """The following components are provided under the Apache License. See project link for details.
+The text of each license is the standard Apache 2.0 license.
+""",
+    "MIT License": """The following components are provided under the MIT License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "BSD License": """The following components are provided under a BSD license. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CC0-1.0 License": """The following components are provided under the CC0-1.0 License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CDDL License": """The following components are provided under the CDDL License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Eclipse Public License": """The following components are provided under the Eclipse Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Public Domain License": """The following components are provided under the Public Domain License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Mozilla Public License Version 2.0": """The following components are provided under the Mozilla Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Unicode License": """The following components are provided under the Unicode License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Go License": """The following components are provided under the Go License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Other License": """The following components are provided under some minority Licenses. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+"""
+}
+licenses_map = {
+    "Apache 2.0 License": [],
+    "MIT License": [],
+    "BSD License": [],
+    "CC0-1.0 License": [],
+    "CDDL License": [],
+    "Eclipse Public License": [],
+    "Public Domain License": [],
+    "Mozilla Public License Version 2.0": [],
+    "Unicode License": [],
+    "Go License": [],
+    "Other License": []
+}
+
+for _ in licenses:

Review comment:
       I think `_` is usually used for unused variables, why do you think using `_` is easier maintain?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r811960347



##########
File path: pom.xml
##########
@@ -789,6 +790,51 @@
                     <artifactId>build-helper-maven-plugin</artifactId>
                     <version>${maven-helper-plugin.version}</version>
                 </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>license-maven-plugin</artifactId>
+                    <version>${maven-license-maven-plugin}</version>
+                    <executions>
+                        <execution>
+                            <id>download</id>
+                            <goals>
+                                <goal>download-licenses</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                    <configuration>
+                        <outputDirectory>${project.basedir}/seatunnel-dist/target/</outputDirectory>
+                        <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
+                        <sortArtifactByName>true</sortArtifactByName>
+                        <useMissingFile>false</useMissingFile>
+                        <addJavaLicenseAfterPackage>true</addJavaLicenseAfterPackage>
+                    </configuration>
+                </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>exec-maven-plugin</artifactId>
+                    <version>${exec-maven-plugin.version}</version>
+                    <executions>
+                        <execution>
+                            <id>license</id>
+                            <phase>package</phase>
+                            <goals>
+                                <goal>exec</goal>
+                            </goals>
+                            <configuration>

Review comment:
       @CalvinKirs here, these comments you may want catch up.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r811959103



##########
File path: bin/license.py
##########
@@ -0,0 +1,385 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if sys.version_info.major < 3:
+    print('At least Python3 is required!')
+    print('Please refer to the https://www.python.org/downloads/ documentation if you do not have a right Python env.')
+    exit(-1)
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 3!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {

Review comment:
       These dependencies are unknown for maven main repo and this script, right 😅 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature][CI] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r801547463



##########
File path: pom.xml
##########
@@ -789,6 +790,51 @@
                     <artifactId>build-helper-maven-plugin</artifactId>
                     <version>${maven-helper-plugin.version}</version>
                 </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>license-maven-plugin</artifactId>
+                    <version>${maven-license-maven-plugin}</version>
+                    <executions>
+                        <execution>
+                            <id>download</id>
+                            <goals>
+                                <goal>download-licenses</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                    <configuration>
+                        <outputDirectory>${project.basedir}/seatunnel-dist/target/</outputDirectory>
+                        <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
+                        <sortArtifactByName>true</sortArtifactByName>
+                        <useMissingFile>false</useMissingFile>
+                        <addJavaLicenseAfterPackage>true</addJavaLicenseAfterPackage>
+                    </configuration>
+                </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>exec-maven-plugin</artifactId>
+                    <version>${exec-maven-plugin.version}</version>
+                    <executions>
+                        <execution>
+                            <id>license</id>
+                            <phase>package</phase>
+                            <goals>
+                                <goal>exec</goal>
+                            </goals>
+                            <configuration>

Review comment:
       > the Python script will fail if the users don't have a correct Python version and dependency modules installed, the script is not vanilla Python script right?
   
   About this, I believe there are two solutions:
   - In future, we can use VirtualEnv to ensure the env is the same
   - Use requirements file to help users quickly setup
   




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] morningman commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
morningman commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r808046453



##########
File path: docs/en/developement/NewLicenseGuide.md
##########
@@ -2,9 +2,23 @@
 
 If you have any new Jar binary package adding in you PR, you need to follow the steps below to notice license
 
-1. declared in `tools/dependencies/konw-dependencies.txt`,
-2. Add the corresponding License file under `seatunnel-dist/release-docs/licenses`, if it is a standard Apache License, it does not need to be added.
+1. declared in `tools/dependencies/konw-dependencies.txt`

Review comment:
       ```suggestion
   1. declared in `tools/dependencies/known-dependencies.txt`
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r809823534



##########
File path: tools/dependencies/known-dependencies.txt
##########
@@ -214,13 +217,13 @@ hadoop-yarn-server-common-2.6.5.jar
 hbase-annotations-2.0.0.jar
 hbase-client-2.0.0.jar
 hbase-client-2.1.0.jar
-hbase-common-2.0.0.jar
 hbase-common-2.0.0-tests.jar
+hbase-common-2.0.0.jar
 hbase-common-2.1.0.jar
-hbase-hadoop2-compat-2.0.0.jar
-hbase-hadoop2-compat-2.1.0.jar
 hbase-hadoop-compat-2.0.0.jar
 hbase-hadoop-compat-2.1.0.jar
+hbase-hadoop2-compat-2.0.0.jar

Review comment:
       Hi @CalvinKirs, there is no new Jar, just the positions have been switched.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r809853270



##########
File path: bin/license.py
##########
@@ -0,0 +1,381 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if sys.version_info.major < 3:
+    print('At least Python3 is required!')
+    print('Please refer to the https://www.python.org/downloads/ documentation if you do not have a right Python env.')
+    exit(-1)
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 3!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"
+}
+licenses_describe_map = {
+    "Apache 2.0 License":
+        """The following components are provided under the Apache License. See project link for details.
+The text of each license is the standard Apache 2.0 license.
+""",
+    "MIT License": """The following components are provided under the MIT License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "BSD License": """The following components are provided under a BSD license. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CC0-1.0 License": """The following components are provided under the CC0-1.0 License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CDDL License": """The following components are provided under the CDDL License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Eclipse Public License": """The following components are provided under the Eclipse Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Public Domain License": """The following components are provided under the Public Domain License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Mozilla Public License Version 2.0": """The following components are provided under the Mozilla Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Unicode License": """The following components are provided under the Unicode License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Go License": """The following components are provided under the Go License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Other License": """The following components are provided under some minority Licenses. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.

Review comment:
       Hi @kezhenxu94, it is no need for now, but we still need collect unexpected license in case, right

##########
File path: bin/license.py
##########
@@ -0,0 +1,381 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if sys.version_info.major < 3:
+    print('At least Python3 is required!')
+    print('Please refer to the https://www.python.org/downloads/ documentation if you do not have a right Python env.')
+    exit(-1)
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 3!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"
+}
+licenses_describe_map = {
+    "Apache 2.0 License":
+        """The following components are provided under the Apache License. See project link for details.
+The text of each license is the standard Apache 2.0 license.
+""",
+    "MIT License": """The following components are provided under the MIT License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "BSD License": """The following components are provided under a BSD license. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CC0-1.0 License": """The following components are provided under the CC0-1.0 License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CDDL License": """The following components are provided under the CDDL License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Eclipse Public License": """The following components are provided under the Eclipse Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Public Domain License": """The following components are provided under the Public Domain License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Mozilla Public License Version 2.0": """The following components are provided under the Mozilla Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Unicode License": """The following components are provided under the Unicode License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Go License": """The following components are provided under the Go License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Other License": """The following components are provided under some minority Licenses. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+"""
+}
+licenses_map = {
+    "Apache 2.0 License": [],
+    "MIT License": [],
+    "BSD License": [],
+    "CC0-1.0 License": [],
+    "CDDL License": [],
+    "Eclipse Public License": [],
+    "Public Domain License": [],
+    "Mozilla Public License Version 2.0": [],
+    "Unicode License": [],
+    "Go License": [],
+    "Other License": []

Review comment:
       Hi @kezhenxu94, it is no need for now, but we still need collect unexpected license in case, right




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] kezhenxu94 commented on a change in pull request #1210: [Feature][CI] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r801552344



##########
File path: seatunnel-dist/release-docs/LICENSE
##########
@@ -937,13 +819,34 @@ The text of each license is also included at licenses/LICENSE-[project].txt.
      (Mozilla Public License Version 2.0) jamon-runtime (org.jamon:jamon-runtime:2.4.1 - http://www.jamon.org/jamon-java-parent/jamon-runtime/)
      (Mozilla Public License, Version 2.0) Mozilla Rhino (org.mozilla:rhino:1.7.11 - https://developer.mozilla.org/en/Rhino)
 
+
 ========================================================================
 Unicode License
 ========================================================================
 
 The following components are provided under the Unicode License. See project link for details.
 The text of each license is also included at licenses/LICENSE-[project].txt.
 
-     (Unicode/ICU License) ICU4J (com.ibm.icu:icu4j:60.2 - http://icu-project.org/)
      (Unicode/ICU License) ICU4J Charset Provider (com.ibm.icu:icu4j-charset:60.2 - http://icu-project.org/)
      (Unicode/ICU License) ICU4J Locale Service Provider (com.ibm.icu:icu4j-localespi:60.2 - http://icu-project.org/)
+
+
+========================================================================
+Other License
+========================================================================
+
+The following components are provided under some minority Licenses. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+
+     (Unknown license) Antlr 3.4 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)
+     (Unknown license) commons-beanutils (commons-beanutils:commons-beanutils:1.7.0 - no url defined)
+     (Unknown license) commons-pool (commons-pool:commons-pool:1.5.4 - no url defined)
+     (Unknown license) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)
+     (Unknown license) jsp-api (javax.servlet.jsp:jsp-api:2.1 - no url defined)
+     (APL2) msgpack-core (org.msgpack:msgpack-core:0.9.0 - https://msgpack.org/)
+     (Unknown license) oro (oro:oro:2.0.8 - no url defined)
+     (The Go license) re2j (com.google.re2j:re2j:1.1 - http://github.com/google/re2j)
+     (Unknown license) servlet-api (javax.servlet:servlet-api:2.5 - no url defined)
+     (Unknown license) sigar (org.hyperic:sigar:1.6.5.132 - no url defined)

Review comment:
       > Hi @kezhenxu94, thanks for your comment. Yes, the `license-maven-plugin` plugin can exclude unknown license, but I think we shouldn't ignore them, we should clean up our dependencies tree to avoid unknown licenses
   
   I don't mean we should ignore them, instead, we should identify them manually, or remove them if they don't have a valid license




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] CalvinKirs commented on pull request #1210: [Feature][CI] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#issuecomment-1032511917


   There are still some situations that need to be handled manually, such as Unknow License, or source-level dependencies. I don't know py, but this seems to be completely handed over to the code to generate the license file. This may be more suitable as a check, but it is not suitable for CI to automatically add.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature][CI] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r801548697



##########
File path: seatunnel-dist/release-docs/LICENSE
##########
@@ -937,13 +819,34 @@ The text of each license is also included at licenses/LICENSE-[project].txt.
      (Mozilla Public License Version 2.0) jamon-runtime (org.jamon:jamon-runtime:2.4.1 - http://www.jamon.org/jamon-java-parent/jamon-runtime/)
      (Mozilla Public License, Version 2.0) Mozilla Rhino (org.mozilla:rhino:1.7.11 - https://developer.mozilla.org/en/Rhino)
 
+
 ========================================================================
 Unicode License
 ========================================================================
 
 The following components are provided under the Unicode License. See project link for details.
 The text of each license is also included at licenses/LICENSE-[project].txt.
 
-     (Unicode/ICU License) ICU4J (com.ibm.icu:icu4j:60.2 - http://icu-project.org/)
      (Unicode/ICU License) ICU4J Charset Provider (com.ibm.icu:icu4j-charset:60.2 - http://icu-project.org/)
      (Unicode/ICU License) ICU4J Locale Service Provider (com.ibm.icu:icu4j-localespi:60.2 - http://icu-project.org/)
+
+
+========================================================================
+Other License
+========================================================================
+
+The following components are provided under some minority Licenses. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+
+     (Unknown license) Antlr 3.4 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)
+     (Unknown license) commons-beanutils (commons-beanutils:commons-beanutils:1.7.0 - no url defined)
+     (Unknown license) commons-pool (commons-pool:commons-pool:1.5.4 - no url defined)
+     (Unknown license) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)
+     (Unknown license) jsp-api (javax.servlet.jsp:jsp-api:2.1 - no url defined)
+     (APL2) msgpack-core (org.msgpack:msgpack-core:0.9.0 - https://msgpack.org/)
+     (Unknown license) oro (oro:oro:2.0.8 - no url defined)
+     (The Go license) re2j (com.google.re2j:re2j:1.1 - http://github.com/google/re2j)
+     (Unknown license) servlet-api (javax.servlet:servlet-api:2.5 - no url defined)
+     (Unknown license) sigar (org.hyperic:sigar:1.6.5.132 - no url defined)

Review comment:
       Hi @kezhenxu94, thanks for your comment. Yes, the `license-maven-plugin` plugin can exclude unknown license, but I think we shouldn't ignore them, we should clean up our dependencies tree to avoid unknown licenses




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r807526674



##########
File path: bin/license.py
##########
@@ -0,0 +1,376 @@
+#!/usr/bin/env python3

Review comment:
       Hi @zhongjiajie, thanks for your comment, however this script are using Python 3, and Python 2 is no longer under maintenance status, so IMO specific version of Python is still necessary




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r807538988



##########
File path: docs/en/developement/NewLicenseGuide.md
##########
@@ -2,9 +2,19 @@
 
 If you have any new Jar binary package adding in you PR, you need to follow the steps below to notice license
 
-1. declared in `tools/dependencies/konw-dependencies.txt`,
-2. Add the corresponding License file under `seatunnel-dist/release-docs/licenses`, if it is a standard Apache License, it does not need to be added.
+1. declared in `tools/dependencies/konw-dependencies.txt`
+
+2. Add the corresponding License file under `seatunnel-dist/release-docs/licenses`, if it is a standard Apache License, it does not need to be added
+
 3. Add the corresponding statement in `seatunnel-dist/release-docs/LICENSE`
+
+   ```bash
+   # At the same time, you can also use the script to assist the inspection.
+   # Because it only uses the Python native APIs and does not depend on any third-party libraries, it can run using the original Python environment.
+   # Please refer to the documentation if you do not have a Python env: https://www.python.org/downloads/
+   python3 bin/license.py seatunnel-dist/target/THIRD-PARTY.txt seatunnel-dist/release-docs/LICENSE true

Review comment:
       Also thanks for your mention, I just add more details to the relate doc as well.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] asdf2014 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
asdf2014 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r806736199



##########
File path: seatunnel-dist/release-docs/LICENSE
##########
@@ -590,161 +524,162 @@ The text of each license is the standard Apache 2.0 license.
      (Apache 2) Lucene Spatial Extras (org.apache.lucene:lucene-spatial-extras:7.3.1 - http://lucene.apache.org/lucene-parent/lucene-spatial-extras)
      (Apache 2) Lucene Suggest (org.apache.lucene:lucene-suggest:7.3.1 - http://lucene.apache.org/lucene-parent/lucene-suggest)
      (The Apache Software License, Version 2.0) LZ4 and xxHash (net.jpountz.lz4:lz4:1.3.0 - https://github.com/jpountz/lz4-java)
-     (The Apache Software License, Version 2.0) LZ4 and xxHash (org.lz4:lz4-java:1.4.0 - https://github.com/lz4/lz4-java)
-     (The Apache Software License, Version 2.0) LZ4 and xxHash (org.lz4:lz4-java:1.4.1 - https://github.com/lz4/lz4-java)
-     (The Apache Software License, Version 2.0) LZ4 and xxHash (org.lz4:lz4-java:1.6.0 - https://github.com/lz4/lz4-java)
-     (The Apache Software License, Version 2.0) LZ4 and xxHash (org.lz4:lz4-java:1.7.1 - https://github.com/lz4/lz4-java)
      (The Apache Software License, Version 2.0) Maven Aether Provider (org.apache.maven:maven-aether-provider:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-aether-provider)
      (Apache License, Version 2.0) Maven Artifact (org.apache.maven:maven-artifact:3.6.0 - https://maven.apache.org/ref/3.6.0/maven-artifact/)
-     (The Apache Software License, Version 2.0) Maven Model Builder (org.apache.maven:maven-model-builder:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-model-builder)
      (The Apache Software License, Version 2.0) Maven Model (org.apache.maven:maven-model:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-model)
+     (The Apache Software License, Version 2.0) Maven Model Builder (org.apache.maven:maven-model-builder:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-model-builder)
      (The Apache Software License, Version 2.0) Maven Repository Metadata Model (org.apache.maven:maven-repository-metadata:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-repository-metadata)
-     (The Apache Software License, Version 2.0) Maven Settings Builder (org.apache.maven:maven-settings-builder:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-settings-builder)
      (The Apache Software License, Version 2.0) Maven Settings (org.apache.maven:maven-settings:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-settings)
-     (Apache License, Version 2.0) com.yahoo.datasketches:memory (com.yahoo.datasketches:memory:0.9.0 - https://datasketches.github.io/memory/)
+     (The Apache Software License, Version 2.0) Maven Settings Builder (org.apache.maven:maven-settings-builder:3.1.1 - http://maven.apache.org/ref/3.1.1/maven-settings-builder)
      (Apache License 2.0) Metrics Core (io.dropwizard.metrics:metrics-core:3.1.5 - http://metrics.codahale.com/metrics-core/)
-     (Apache License 2.0) Metrics Core (io.dropwizard.metrics:metrics-core:3.2.1 - http://metrics.codahale.com/metrics-core/)
-     (Apache License 2.0) Metrics Core (io.dropwizard.metrics:metrics-core:4.0.0 - http://metrics.dropwizard.io/metrics-core)
-     (The Apache Software License, Version 2.0) MongoDB Java Driver (org.mongodb:mongo-java-driver:3.4.2 - http://www.mongodb.org)
      (Apache-2.0) mongo-spark-connector (org.mongodb.spark:mongo-spark-connector_2.11:2.2.0 - http://github.com/mongo-spark)
+     (The Apache Software License, Version 2.0) MongoDB Java Driver (org.mongodb:mongo-java-driver:3.4.2 - http://www.mongodb.org)
      (Apache 2.0) Moshi (com.squareup.moshi:moshi:1.8.0 - https://github.com/square/moshi/moshi)
+     (APL2) msgpack-core (org.msgpack:msgpack-core:0.9.0 - https://msgpack.org/)
+     (Apache License, Version 2) Neo4j Java Driver (org.neo4j.driver:neo4j-java-driver:4.3.4 - https://github.com/neo4j/neo4j-java-driver/neo4j-java-driver)
      (The Apache Software License, Version 2.0) neo4j-connector-apache-spark-2.4.8 (org.neo4j:neo4j-connector-apache-spark_2.11:4.1.0_for_spark_2.4 - https://github.com/neo4j-contrib/neo4j-spark-connector/neo4j-connector-apache-spark_2.12)
      (The Apache Software License, Version 2.0) neo4j-connector-apache-spark-common (org.neo4j:neo4j-connector-apache-spark_2.12_common:4.1.0 - https://github.com/neo4j-contrib/neo4j-spark-connector/neo4j-connector-apache-spark_2.12_common)
-     (The Apache Software License, Version 2.0) Neo4j Cypher DSL (Core) (org.neo4j:neo4j-cypher-dsl:2020.1.4 - https://neo4j-contrib.github.io/cypher-dsl/neo4j-cypher-dsl)
-     (Apache License, Version 2) Neo4j Java Driver (org.neo4j.driver:neo4j-java-driver:4.3.4 - https://github.com/neo4j/neo4j-java-driver/neo4j-java-driver)
+     (The Apache License, Version 2.0) net.thisptr:jackson-jq (net.thisptr:jackson-jq:0.0.10 - https://github.com/eiiches/jackson-jq/jackson-jq)
      (Apache License, Version 2.0) Netty (io.netty:netty:3.10.5.Final - http://netty.io/)
-     (Apache License, Version 2.0) Netty (io.netty:netty:3.10.6.Final - http://netty.io/)
-     (Apache License, Version 2.0) Netty (io.netty:netty:3.9.9.Final - http://netty.io/)
+     (Apache 2) Netty Reactive Streams Implementation (com.typesafe.netty:netty-reactive-streams:2.0.0 - https://github.com/playframework/netty-reactive-streams/netty-reactive-streams)
      (Apache License, Version 2.0) Netty/All-in-One (io.netty:netty-all:4.0.23.Final - http://netty.io/netty-all/)
-     (Apache License, Version 2.0) Netty/All-in-One (io.netty:netty-all:4.1.17.Final - http://netty.io/netty-all/)
      (Apache License, Version 2.0) Netty/Buffer (io.netty:netty-buffer:4.1.16.Final - http://netty.io/netty-buffer/)
-     (Apache License, Version 2.0) Netty/Buffer (io.netty:netty-buffer:4.1.63.Final - https://netty.io/netty-buffer/)
      (Apache License, Version 2.0) Netty/Codec (io.netty:netty-codec:4.1.16.Final - http://netty.io/netty-codec/)
-     (Apache License, Version 2.0) Netty/Codec/HTTP (io.netty:netty-codec-http:4.1.16.Final - http://netty.io/netty-codec-http/)
-     (Apache License, Version 2.0) Netty/Codec/HTTP (io.netty:netty-codec-http:4.1.63.Final - https://netty.io/netty-codec-http/)
-     (Apache License, Version 2.0) Netty/Codec (io.netty:netty-codec:4.1.63.Final - https://netty.io/netty-codec/)
      (Apache License, Version 2.0) Netty/Codec/DNS (io.netty:netty-codec-dns:4.1.29.Final - http://netty.io/netty-codec-dns/)
+     (Apache License, Version 2.0) Netty/Codec/HTTP (io.netty:netty-codec-http:4.1.16.Final - http://netty.io/netty-codec-http/)
      (Apache License, Version 2.0) Netty/Codec/Socks (io.netty:netty-codec-socks:4.1.29.Final - http://netty.io/netty-codec-socks/)
      (Apache License, Version 2.0) Netty/Common (io.netty:netty-common:4.1.16.Final - http://netty.io/netty-common/)
-     (Apache License, Version 2.0) Netty/Common (io.netty:netty-common:4.1.63.Final - https://netty.io/netty-common/)
      (Apache License, Version 2.0) Netty/Handler (io.netty:netty-handler:4.1.16.Final - http://netty.io/netty-handler/)
-     (Apache License, Version 2.0) Netty/Handler (io.netty:netty-handler:4.1.63.Final - https://netty.io/netty-handler/)
      (Apache License, Version 2.0) Netty/Handler/Proxy (io.netty:netty-handler-proxy:4.1.29.Final - http://netty.io/netty-handler-proxy/)
-     (Apache 2) Netty Reactive Streams Implementation (com.typesafe.netty:netty-reactive-streams:2.0.0 - https://github.com/playframework/netty-reactive-streams/netty-reactive-streams)
      (Apache License, Version 2.0) Netty/Resolver (io.netty:netty-resolver:4.1.16.Final - http://netty.io/netty-resolver/)
-     (Apache License, Version 2.0) Netty/Resolver (io.netty:netty-resolver:4.1.63.Final - https://netty.io/netty-resolver/)
      (Apache License, Version 2.0) Netty/Resolver/DNS (io.netty:netty-resolver-dns:4.1.29.Final - http://netty.io/netty-resolver-dns/)
      (Apache License, Version 2.0) Netty/Transport (io.netty:netty-transport:4.1.16.Final - http://netty.io/netty-transport/)
-     (Apache License, Version 2.0) Netty/Transport (io.netty:netty-transport:4.1.63.Final - https://netty.io/netty-transport/)
+     (Apache License, Version 2.0) Netty/Transport/Native/Epoll (io.netty:netty-transport-native-epoll:4.1.29.Final - http://netty.io/netty-transport-native-epoll/)
      (Apache License, Version 2.0) Netty/Transport/Native/Unix/Common (io.netty:netty-transport-native-unix-common:4.1.29.Final - http://netty.io/netty-transport-native-unix-common/)
      (The Apache Software License, Version 2.0) Nimbus JOSE+JWT (com.nimbusds:nimbus-jose-jwt:4.41.1 - https://bitbucket.org/connect2id/nimbus-jose-jwt)
-     (Apache 2) Objenesis (org.objenesis:objenesis:2.5.1 - http://objenesis.org)
-     (Apache 2.0) OkHttp (com.squareup.okhttp:okhttp:1.0.2 - https://github.com/square/okhttp/okhttp)
-     (Apache 2.0) OkHttp (com.squareup.okhttp:okhttp:2.4.0 - https://github.com/square/okhttp/okhttp)
-     (The Apache Software License, Version 2.0) okhttp (com.squareup.okhttp3:okhttp:4.9.1 - https://square.github.io/okhttp/)
-     (Apache 2.0) Okio (com.squareup.okio:okio:1.4.0 - https://github.com/square/okio/okio)
-     (The Apache Software License, Version 2.0) Okio (com.squareup.okio:okio:2.8.0 - https://github.com/square/okio/)
+     (Apache 2) Objenesis (org.objenesis:objenesis:2.1 - http://objenesis.org)
+     (The Apache Software License, Version 2.0) okhttp-logging-interceptor (com.squareup.okhttp3:logging-interceptor:4.9.1 - https://square.github.io/okhttp/)
      (Apache 2) opencsv (com.opencsv:opencsv:4.6 - http://opencsv.sf.net)
-     (Apache License, Version 2.0) ORC Core (org.apache.orc:orc-core:1.5.6 - http://orc.apache.org/orc-core)
-     (Apache License, Version 2.0) ORC Shims (org.apache.orc:orc-shims:1.5.6 - http://orc.apache.org/orc-shims)
-     (The Apache Software License, Version 2.0) Jackson module: Paranamer (com.fasterxml.jackson.module:jackson-module-paranamer:2.7.9 - https://github.com/FasterXML/jackson-modules-base)
-     (The Apache Software License, Version 2.0) Apache Parquet Column (org.apache.parquet:parquet-column:1.10.0 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Column (org.apache.parquet:parquet-column:1.11.1 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Common (org.apache.parquet:parquet-common:1.10.0 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Common (org.apache.parquet:parquet-common:1.11.1 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Encodings (org.apache.parquet:parquet-encoding:1.10.0 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Encodings (org.apache.parquet:parquet-encoding:1.11.1 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Format (org.apache.parquet:parquet-format:2.4.0 - http://parquet.apache.org/)
-     (The Apache Software License, Version 2.0) Apache Parquet Format Structures (org.apache.parquet:parquet-format-structures:1.11.1 - https://parquet.apache.org/)
-     (The Apache Software License, Version 2.0) Apache Parquet Hadoop (org.apache.parquet:parquet-hadoop:1.10.0 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Hadoop (org.apache.parquet:parquet-hadoop:1.11.1 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Jackson (org.apache.parquet:parquet-jackson:1.10.0 - https://parquet.apache.org)
-     (The Apache Software License, Version 2.0) Apache Parquet Jackson (org.apache.parquet:parquet-jackson:1.11.1 - https://parquet.apache.org)
+     (Apache License, Version 2.0) ORC Core (org.apache.orc:orc-core:1.5.2 - http://orc.apache.org/orc-core)
+     (Apache License, Version 2.0) ORC MapReduce (org.apache.orc:orc-mapreduce:1.5.2 - http://orc.apache.org/orc-mapreduce)
+     (Apache License, Version 2.0) ORC Shims (org.apache.orc:orc-shims:1.5.2 - http://orc.apache.org/orc-shims)
+     (The Apache License, Version 2.0) org.apiguardian:apiguardian-api (org.apiguardian:apiguardian-api:1.1.0 - https://github.com/apiguardian-team/apiguardian)
+     (The Apache Software License, Version 2.0) org.gridkit.lab::jvm-attach-api (org.gridkit.lab:jvm-attach-api:1.5 - http://code.google.com/p/gridkit/jvm-attach-api)
+     (The Apache License, Version 2.0) org.jetbrains.kotlin:kotlin-stdlib (org.jetbrains.kotlin:kotlin-stdlib:1.4.10 - https://kotlinlang.org/)
+     (The Apache License, Version 2.0) org.jetbrains.kotlin:kotlin-stdlib-common (org.jetbrains.kotlin:kotlin-stdlib-common:1.4.0 - https://kotlinlang.org/)
+     (The Apache License, Version 2.0) org.jetbrains.kotlin:kotlin-stdlib-jdk7 (org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.4.10 - https://kotlinlang.org/)
+     (The Apache License, Version 2.0) org.jetbrains.kotlin:kotlin-stdlib-jdk8 (org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.10 - https://kotlinlang.org/)
+     (Apache 2) org.roaringbitmap:RoaringBitmap (org.roaringbitmap:RoaringBitmap:0.9.0 - https://github.com/RoaringBitmap/RoaringBitmap)
+     (Apache 2) org.roaringbitmap:shims (org.roaringbitmap:shims:0.9.0 - https://github.com/RoaringBitmap/RoaringBitmap)
+     (Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)
+     (The Apache Software License, Version 2.0) parent-join (org.elasticsearch.plugin:parent-join-client:6.3.1 - https://github.com/elastic/elasticsearch)
+     (The Apache Software License, Version 2.0) percolator (org.elasticsearch.plugin:percolator-client:6.3.1 - https://github.com/elastic/elasticsearch)
+     (The Apache Software License, Version 2.0) Phoenix - Spark (org.apache.phoenix:phoenix-spark:5.0.0-HBase-2.0 - http://www.apache.org/phoenix/phoenix-spark/)
+     (The Apache Software License, Version 2.0) Phoenix Core (org.apache.phoenix:phoenix-core:5.0.0-HBase-2.0 - http://www.apache.org/phoenix/phoenix-core/)
      (Apache-2.0) play-mailer (com.typesafe.play:play-mailer_2.11:7.0.2 - https://github.com/playframework/play-mailer)
-     (The Apache Software License, Version 2.0) Plexus Interpolation API (org.codehaus.plexus:plexus-interpolation:1.19 - http://plexus.codehaus.org/plexus-components/plexus-interpolation)
      (Apache License, Version 2.0) Plexus Common Utilities (org.codehaus.plexus:plexus-utils:3.1.0 - http://codehaus-plexus.github.io/plexus-utils/)
-     (Apache License, Version 2.0) Apache POI (org.apache.poi:poi:4.1.2 - http://poi.apache.org/)
-     (Apache License, Version 2.0) Apache POI (org.apache.poi:poi-ooxml:4.1.2 - http://poi.apache.org/)
-     (Apache License, Version 2.0) Apache POI (org.apache.poi:poi-ooxml-schemas:4.1.2 - http://poi.apache.org/)
+     (The Apache Software License, Version 2.0) Plexus Interpolation API (org.codehaus.plexus:plexus-interpolation:1.19 - http://plexus.codehaus.org/plexus-components/plexus-interpolation)
+     (The Apache Software License, Version 2.0) project ':json-path' (com.jayway.jsonpath:json-path:2.3.0 - https://github.com/jayway/JsonPath)
+     (The Apache Software License, Version 2.0) rank-eval (org.elasticsearch.plugin:rank-eval-client:6.3.1 - https://github.com/elastic/elasticsearch)
+     (The Apache Software License, Version 2.0) reindex (org.elasticsearch.plugin:reindex-client:6.3.1 - https://github.com/elastic/elasticsearch)
      (Apache-2.0) resilience4j (io.github.resilience4j:resilience4j-bulkhead:1.3.1 - https://github.com/resilience4j/resilience4j)
-     (Apache-2.0) resilience4j (io.github.resilience4j:resilience4j-core:1.3.1 - https://github.com/resilience4j/resilience4j)
+     (The Apache Software License, Version 2.0) rest (org.elasticsearch.client:elasticsearch-rest-client:6.3.1 - https://github.com/elastic/elasticsearch)
+     (The Apache Software License, Version 2.0) rest-high-level (org.elasticsearch.client:elasticsearch-rest-high-level-client:6.3.1 - https://github.com/elastic/elasticsearch)
      (The Apache Software License, Version 2.0) Retrofit (com.squareup.retrofit2:retrofit:2.9.0 - https://github.com/square/retrofit)
-     (Apache-2.0) scala-xml (org.scala-lang.modules:scala-xml_2.11:1.3.0 - http://www.scala-lang.org/)
+     (Apache 2) RoaringBitmap (org.roaringbitmap:RoaringBitmap:0.5.11 - https://github.com/lemire/RoaringBitmap)
      (Apache 2) scalaj-http (org.scalaj:scalaj-http_2.11:2.3.0 - http://github.com/scalaj/scalaj-http)
-     (Apache License Version 2.0) SIGAR (org.hyperic:sigar:1.6.5.132 - http://sigar.hyperic.com/)
-     (Apache License, Version 2.0) com.yahoo.datasketches:sketches-core (com.yahoo.datasketches:sketches-core:0.9.0 - https://datasketches.github.io/sketches-core/)
+     (The Apache License, Version 2.0) seatunnel-api-base (org.apache.seatunnel:seatunnel-api-base:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-apis/seatunnel-api-base)
+     (The Apache License, Version 2.0) seatunnel-api-flink (org.apache.seatunnel:seatunnel-api-flink:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-apis/seatunnel-api-flink)
+     (The Apache License, Version 2.0) seatunnel-api-spark (org.apache.seatunnel:seatunnel-api-spark:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-apis/seatunnel-api-spark)
+     (The Apache License, Version 2.0) seatunnel-common (org.apache.seatunnel:seatunnel-common:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-common)
+     (The Apache License, Version 2.0) seatunnel-config (org.apache.seatunnel:seatunnel-config:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-config)
+     (The Apache License, Version 2.0) seatunnel-connector-flink-console (org.apache.seatunnel:seatunnel-connector-flink-console:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-connectors/seatunnel-connector-flink-console)
+     (The Apache License, Version 2.0) seatunnel-connector-flink-doris (org.apache.seatunnel:seatunnel-connector-flink-doris:2.0.5-SNAPSHOT - https://github.com/apache/incubator-seatunnel/seatunnel-connectors/seatunnel-connector-flink-doris)

Review comment:
       Hi @CalvinKirs, thanks for your comment. These are removed.

##########
File path: bin/license.py
##########
@@ -0,0 +1,364 @@
+#!/usr/bin/env python3
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import sys
+
+if len(sys.argv) - 1 != 2:
+    print("The length of arguments should be 2!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+unknown_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"

Review comment:
       Hi @CalvinKirs, regarding unknown dependencies, the license information of them cannot be found in the maven central repository. So I downloaded the Jar package manually, and then unzipped it and checked the LICENSE file to confirm. :smile:




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] kezhenxu94 commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r815250951



##########
File path: bin/license.py
##########
@@ -0,0 +1,387 @@
+#!/usr/bin/env python
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import os
+import sys
+
+if sys.version_info.major < 3:
+    print('At least Python3 is required!')
+    print('Please refer to the https://www.python.org/downloads/ documentation if you do not have a right Python env.')
+    exit(-1)
+
+if len(sys.argv) - 1 != 3:
+    print("The length of arguments should be 3!")
+    print("The first argument should be the path to the THIRD-PARTY.txt file.")
+    print("The second argument should be the path to the LICENSE file.")
+    print("The third argument should be a flag that controls whether to print the diff or change the LICENSE file.")
+    exit(-1)
+
+third_party = sys.argv[1]
+license = sys.argv[2]
+print_diff = sys.argv[3]
+
+with open(third_party, "r") as f:
+    licenses = f.readlines()
+
+licenses_keyword_map = {
+    "Apache 2.0 License": ["Apache", "APL2"],
+    "MIT License": ["MIT"],
+    "BSD License": ["BSD"],
+    "CC0-1.0 License": ["CC0"],
+    "CDDL License": ["CDDL"],
+    "Eclipse Public License": ["Eclipse"],
+    "Public Domain License": ["Public Domain"],
+    "Mozilla Public License Version 2.0": ["Mozilla Public License"],
+    "Go License": ["The Go license"],
+    "Unicode License": ["Unicode/ICU License"]
+}
+dependency_licenses_map = {
+    "commons-beanutils:commons-beanutils:1.7.0": "(Apache License, Version 2.0) Apache Commons BeanUtils (commons-beanutils:commons-beanutils:1.7.0 - https://commons.apache.org/proper/commons-beanutils/)",
+    "commons-pool:commons-pool:1.5.4": "(The Apache Software License, Version 2.0) Commons Pool (commons-pool:commons-pool:1.5.4 - http://commons.apache.org/pool/)",
+    "org.antlr:antlr-runtime:3.4": "(BSD licence) ANTLR 3 Runtime (org.antlr:antlr-runtime:3.4 - http://www.antlr.org)",
+    "javax.transaction:jta:1.1": "(CDDL + GPLv2 with classpath exception) Java Transaction API (javax.transaction:jta:1.1 - http://java.sun.com/products/jta)",
+    "javax.servlet.jsp:jsp-api:2.1": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet.jsp:jsp-api:2.1 - https://javaee.github.io/javaee-jsp-api)",
+    "javax.servlet:servlet-api:2.5": "(CDDL + GPLv2 with classpath exception) Java Servlet API (javax.servlet:servlet-api:2.5 - http://servlet-spec.java.net)",
+    "oro:oro:2.0.8": "(Apache License, Version 1.1) ORO (oro:oro:2.0.8 - https://mvnrepository.com/artifact/oro/oro)",
+    "org.hyperic:sigar:1.6.5.132": "(Apache License, Version 2.0) Sigar (org.hyperic:sigar:1.6.5.132 - https://github.com/hyperic/sigar)"
+}
+licenses_describe_map = {
+    "Apache 2.0 License":
+        """The following components are provided under the Apache License. See project link for details.
+The text of each license is the standard Apache 2.0 license.
+""",
+    "MIT License": """The following components are provided under the MIT License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "BSD License": """The following components are provided under a BSD license. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CC0-1.0 License": """The following components are provided under the CC0-1.0 License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "CDDL License": """The following components are provided under the CDDL License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Eclipse Public License": """The following components are provided under the Eclipse Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Public Domain License": """The following components are provided under the Public Domain License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Mozilla Public License Version 2.0": """The following components are provided under the Mozilla Public License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Unicode License": """The following components are provided under the Unicode License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+""",
+    "Go License": """The following components are provided under the Go License. See project link for details.
+The text of each license is also included at licenses/LICENSE-[project].txt.
+"""
+}
+licenses_map = {
+    "Apache 2.0 License": [],
+    "MIT License": [],
+    "BSD License": [],
+    "CC0-1.0 License": [],
+    "CDDL License": [],
+    "Eclipse Public License": [],
+    "Public Domain License": [],
+    "Mozilla Public License Version 2.0": [],
+    "Unicode License": [],
+    "Go License": [],
+    "Other License": []
+}
+
+for _ in licenses:
+    if "org.apache.seatunnel" in _:
+        continue
+    if "Unknown license" in _:
+        for k, v in dependency_licenses_map.items():
+            if k in _:
+                _ = v
+                break
+    _ = _.strip(" ")
+    if _ == '\n':
+        continue
+    if '(' not in _ or ')' not in _:
+        continue
+    # (Apache 2.0 License) Spark Project Tags (org.apache.spark:spark-tags_2.11:2.4.0 - http://spark.apache.org/)
+    items = _.split(") ")
+    if len(items) != 2:
+        continue
+    type = items[0]
+    l = None
+    for k in licenses_keyword_map:
+        for keyword in licenses_keyword_map[k]:
+            if keyword in type:
+                l = k
+                break
+    if l is None:
+        l = "Other License"
+    licenses_map[l].append(_.strip('\n'))
+
+if len(licenses_map["Other License"]) != 0:
+    for other_license in licenses_map["Other License"]:
+        print(other_license)
+    print("There are some licenses are unknown!")
+    print("Please confirm the license by finding LICENSE file in the corresponding Jar file and maintain it in the unknown_licenses_map instance.")
+    exit(-1)
+
+res = ""
+res += """                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "{}"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright {yyyy} {name of copyright owner}
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+=======================================================================
+Apache SeaTunnel (Incubating) Subcomponents:
+
+The Apache SeaTunnel(Incubating) project contains subcomponents with separate copyright
+notices and license terms. Your use of the source code for the these
+subcomponents is subject to the terms and conditions of the following
+licenses.
+
+
+
+"""
+
+for k, v in licenses_map.items():
+    if len(v) == 0:
+        continue
+    res += "========================================================================\n"
+    res += k
+    res += '\n'
+    res += "========================================================================\n\n"
+    res += licenses_describe_map[k]
+    res += '\n'
+    for _ in sorted(v):
+        res += "     "
+        res += _
+        res += '\n'
+    res += '\n\n'
+
+if print_diff == 'true':
+    tmp_file = third_party + ".tmp"
+    with open(tmp_file, "w") as f:
+        f.write(res)
+    print("Please modify the LICENSE file according to the diff information.")
+    diff_res = os.system("diff " + license + " " + tmp_file)

Review comment:
       This is not portable, Windows system won't run this command `diff`, IIRC




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] zhongjiajie commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
zhongjiajie commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r816721230



##########
File path: pom.xml
##########
@@ -789,6 +790,51 @@
                     <artifactId>build-helper-maven-plugin</artifactId>
                     <version>${maven-helper-plugin.version}</version>
                 </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>license-maven-plugin</artifactId>
+                    <version>${maven-license-maven-plugin}</version>
+                    <executions>
+                        <execution>
+                            <id>download</id>
+                            <goals>
+                                <goal>download-licenses</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                    <configuration>
+                        <outputDirectory>${project.basedir}/seatunnel-dist/target/</outputDirectory>
+                        <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
+                        <sortArtifactByName>true</sortArtifactByName>
+                        <useMissingFile>false</useMissingFile>
+                        <addJavaLicenseAfterPackage>true</addJavaLicenseAfterPackage>
+                    </configuration>
+                </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>exec-maven-plugin</artifactId>
+                    <version>${exec-maven-plugin.version}</version>
+                    <executions>
+                        <execution>
+                            <id>license</id>
+                            <phase>package</phase>
+                            <goals>
+                                <goal>exec</goal>
+                            </goals>
+                            <configuration>

Review comment:
       end users don't need to run this python script if they only want to download the source codes and build the package themselves
   I think this config will still run the python script by default, am I right?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-seatunnel] zhongjiajie commented on a change in pull request #1210: [Feature] [ci] Automatically generate LICENSE

Posted by GitBox <gi...@apache.org>.
zhongjiajie commented on a change in pull request #1210:
URL: https://github.com/apache/incubator-seatunnel/pull/1210#discussion_r816721230



##########
File path: pom.xml
##########
@@ -789,6 +790,51 @@
                     <artifactId>build-helper-maven-plugin</artifactId>
                     <version>${maven-helper-plugin.version}</version>
                 </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>license-maven-plugin</artifactId>
+                    <version>${maven-license-maven-plugin}</version>
+                    <executions>
+                        <execution>
+                            <id>download</id>
+                            <goals>
+                                <goal>download-licenses</goal>
+                            </goals>
+                        </execution>
+                    </executions>
+                    <configuration>
+                        <outputDirectory>${project.basedir}/seatunnel-dist/target/</outputDirectory>
+                        <thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
+                        <sortArtifactByName>true</sortArtifactByName>
+                        <useMissingFile>false</useMissingFile>
+                        <addJavaLicenseAfterPackage>true</addJavaLicenseAfterPackage>
+                    </configuration>
+                </plugin>
+
+                <plugin>
+                    <groupId>org.codehaus.mojo</groupId>
+                    <artifactId>exec-maven-plugin</artifactId>
+                    <version>${exec-maven-plugin.version}</version>
+                    <executions>
+                        <execution>
+                            <id>license</id>
+                            <phase>package</phase>
+                            <goals>
+                                <goal>exec</goal>
+                            </goals>
+                            <configuration>

Review comment:
       > end users don't need to run this python script if they only want to download the source codes and build the package themselves
   
   I think this config will still run the python script by default, am I right?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org