This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-paimon.git
The following commit(s) were added to refs/heads/master by this push:
new 07ed71779 [flink] Clean kafka dependencies for paimon-flink (#2944)
07ed71779 is described below
commit 07ed7177933e1f4af5c682da975ab63481d8eebf
Author: yuzelin <[email protected]>
AuthorDate: Tue Mar 5 18:03:51 2024 +0800
[flink] Clean kafka dependencies for paimon-flink (#2944)
---
paimon-flink/paimon-flink-1.14/pom.xml | 6 ++++
paimon-flink/paimon-flink-1.15/pom.xml | 6 ++++
paimon-flink/paimon-flink-cdc/pom.xml | 13 +++++++++
paimon-flink/pom.xml | 50 ----------------------------------
4 files changed, 25 insertions(+), 50 deletions(-)
diff --git a/paimon-flink/paimon-flink-1.14/pom.xml
b/paimon-flink/paimon-flink-1.14/pom.xml
index f8f0e1bce..0aeac707a 100644
--- a/paimon-flink/paimon-flink-1.14/pom.xml
+++ b/paimon-flink/paimon-flink-1.14/pom.xml
@@ -82,6 +82,12 @@ under the License.
<artifactId>flink-test-utils_${scala.binary.version}</artifactId>
<version>${flink.version}</version>
<scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
diff --git a/paimon-flink/paimon-flink-1.15/pom.xml
b/paimon-flink/paimon-flink-1.15/pom.xml
index 69b0f8c4b..18c4e0e8e 100644
--- a/paimon-flink/paimon-flink-1.15/pom.xml
+++ b/paimon-flink/paimon-flink-1.15/pom.xml
@@ -75,6 +75,12 @@ under the License.
<artifactId>flink-test-utils</artifactId>
<version>${flink.version}</version>
<scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
diff --git a/paimon-flink/paimon-flink-cdc/pom.xml
b/paimon-flink/paimon-flink-cdc/pom.xml
index 145a38d44..dab19aec2 100644
--- a/paimon-flink/paimon-flink-cdc/pom.xml
+++ b/paimon-flink/paimon-flink-cdc/pom.xml
@@ -314,6 +314,19 @@ under the License.
<version>${testcontainers.version}</version>
<scope>test</scope>
</dependency>
+
+ <dependency>
+ <groupId>org.testcontainers</groupId>
+ <artifactId>kafka</artifactId>
+ <version>${testcontainers.version}</version>
+ <scope>test</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
</dependencies>
<build>
diff --git a/paimon-flink/pom.xml b/paimon-flink/pom.xml
index 0c3365a8c..b88f541c6 100644
--- a/paimon-flink/pom.xml
+++ b/paimon-flink/pom.xml
@@ -97,56 +97,6 @@ under the License.
</exclusions>
<scope>test</scope>
</dependency>
-
- <dependency>
- <!-- include 2.0 server for tests -->
- <groupId>org.apache.kafka</groupId>
- <artifactId>kafka_${scala.binary.version}</artifactId>
- <version>${kafka.version}</version>
- <exclusions>
- <exclusion>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- </exclusion>
- <exclusion>
- <groupId>com.fasterxml.jackson.core</groupId>
- <artifactId>*</artifactId>
- </exclusion>
- <exclusion>
- <groupId>com.fasterxml.jackson.dataformat</groupId>
- <artifactId>*</artifactId>
- </exclusion>
- <exclusion>
- <groupId>com.fasterxml.jackson.module</groupId>
- <artifactId>*</artifactId>
- </exclusion>
- <exclusion>
- <groupId>com.fasterxml.jackson.datatype</groupId>
- <artifactId>*</artifactId>
- </exclusion>
- </exclusions>
- <scope>test</scope>
- </dependency>
-
- <dependency>
- <groupId>org.apache.kafka</groupId>
- <artifactId>kafka-clients</artifactId>
- <version>${kafka.version}</version>
- <scope>provided</scope>
- </dependency>
-
- <dependency>
- <groupId>org.testcontainers</groupId>
- <artifactId>kafka</artifactId>
- <version>${testcontainers.version}</version>
- <scope>test</scope>
- <exclusions>
- <exclusion>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
</dependencies>
<profiles>