You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by ki...@apache.org on 2022/07/21 10:27:16 UTC
[incubator-seatunnel] branch dev updated: [Build]Optimize license check (#2232)
This is an automated email from the ASF dual-hosted git repository.
kirs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-seatunnel.git
The following commit(s) were added to refs/heads/dev by this push:
new 8250fc8b7 [Build]Optimize license check (#2232)
8250fc8b7 is described below
commit 8250fc8b7b87b788d0d3869c009a9baa91a2f1d0
Author: Kirs <ki...@apache.org>
AuthorDate: Thu Jul 21 18:27:10 2022 +0800
[Build]Optimize license check (#2232)
---
.github/workflows/backend.yml | 9 ---------
seatunnel-connectors-v2/pom.xml | 11 +++++++++++
seatunnel-e2e/pom.xml | 11 +++++++++++
.../seatunnel-flink-connector-v2-example/pom.xml | 6 ------
tools/dependencies/checkLicense.sh | 2 +-
5 files changed, 23 insertions(+), 16 deletions(-)
diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml
index 0a75a4950..fd47d9d42 100644
--- a/.github/workflows/backend.yml
+++ b/.github/workflows/backend.yml
@@ -125,15 +125,6 @@ jobs:
distribution: 'temurin'
java-version: '8'
cache: 'maven'
- - name: Install
- run: >-
- ./mvnw -B -q install -DskipTests
- -D"maven.test.skip"=true
- -D"maven.javadoc.skip"=true
- -D"scalastyle.skip"=true
- -D"checkstyle.skip"=true
- -D"license.skipAddThirdParty"
- -P release
- name: Check Dependencies Licenses
run: tools/dependencies/checkLicense.sh
diff --git a/seatunnel-connectors-v2/pom.xml b/seatunnel-connectors-v2/pom.xml
index 516c86cfc..ba947e30e 100644
--- a/seatunnel-connectors-v2/pom.xml
+++ b/seatunnel-connectors-v2/pom.xml
@@ -56,5 +56,16 @@
<artifactId>junit-jupiter-params</artifactId>
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
\ No newline at end of file
diff --git a/seatunnel-e2e/pom.xml b/seatunnel-e2e/pom.xml
index 8331b68eb..9f5e6882b 100644
--- a/seatunnel-e2e/pom.xml
+++ b/seatunnel-e2e/pom.xml
@@ -51,4 +51,15 @@
<version>${project.version}</version>
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
\ No newline at end of file
diff --git a/seatunnel-examples/seatunnel-flink-connector-v2-example/pom.xml b/seatunnel-examples/seatunnel-flink-connector-v2-example/pom.xml
index f2d18d62f..40763f8a7 100644
--- a/seatunnel-examples/seatunnel-flink-connector-v2-example/pom.xml
+++ b/seatunnel-examples/seatunnel-flink-connector-v2-example/pom.xml
@@ -106,12 +106,6 @@
<scope>${flink.scope}</scope>
</dependency>
- <dependency>
- <groupId>org.apache.seatunnel</groupId>
- <artifactId>connector-fake</artifactId>
- <version>${project.version}</version>
- </dependency>
-
</dependencies>
</project>
\ No newline at end of file
diff --git a/tools/dependencies/checkLicense.sh b/tools/dependencies/checkLicense.sh
index 15ee18e39..024c95cd0 100755
--- a/tools/dependencies/checkLicense.sh
+++ b/tools/dependencies/checkLicense.sh
@@ -23,7 +23,7 @@ if [ -d "/tmp/seatunnel-dependencies" ]; then
rm -rf /tmp/seatunnel-dependencies/*
fi
-./mvnw --batch-mode --no-snapshot-updates dependency:copy-dependencies -DincludeScope=runtime -DoutputDirectory=/tmp/seatunnel-dependencies -P release
+./mvnw clean -pl '!seatunnel-connectors-v2-dist,!seatunnel-dist,!seatunnel-connectors-v2/connector-fake' --batch-mode --no-snapshot-updates dependency:copy-dependencies -DincludeScope=runtime -DoutputDirectory=/tmp/seatunnel-dependencies
# List all modules(jars) that belong to the SeaTunnel itself, these will be ignored when checking the dependency
ls /tmp/seatunnel-dependencies | sort > all-dependencies.txt