Skip to content

Commit 6b6bf7e

Browse files
authored
1 parent b823ed6 commit 6b6bf7e

File tree

4 files changed

+151
-26
lines changed

4 files changed

+151
-26
lines changed

flink-connector-kudu/pom.xml

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,39 +34,51 @@ under the License.
3434
<packaging>jar</packaging>
3535

3636
<dependencies>
37-
<dependency>
38-
<groupId>org.apache.flink</groupId>
39-
<artifactId>flink-clients</artifactId>
40-
</dependency>
41-
4237
<dependency>
4338
<groupId>org.apache.flink</groupId>
4439
<artifactId>flink-connector-base</artifactId>
40+
<scope>provided</scope>
4541
</dependency>
4642

4743
<dependency>
4844
<groupId>org.apache.flink</groupId>
4945
<artifactId>flink-streaming-java</artifactId>
46+
<scope>provided</scope>
5047
</dependency>
5148

5249
<dependency>
5350
<groupId>org.apache.flink</groupId>
5451
<artifactId>flink-table-api-java-bridge</artifactId>
52+
<scope>provided</scope>
5553
</dependency>
5654

5755
<dependency>
5856
<groupId>org.apache.flink</groupId>
5957
<artifactId>flink-table-common</artifactId>
58+
<scope>provided</scope>
6059
</dependency>
6160

6261
<dependency>
6362
<groupId>org.apache.flink</groupId>
6463
<artifactId>flink-table-planner-loader</artifactId>
64+
<scope>provided</scope>
6565
</dependency>
6666

6767
<dependency>
6868
<groupId>org.apache.flink</groupId>
6969
<artifactId>flink-table-runtime</artifactId>
70+
<scope>provided</scope>
71+
</dependency>
72+
73+
<dependency>
74+
<groupId>org.apache.kudu</groupId>
75+
<artifactId>kudu-client</artifactId>
76+
</dependency>
77+
78+
<dependency>
79+
<groupId>org.apache.flink</groupId>
80+
<artifactId>flink-connector-test-utils</artifactId>
81+
<scope>test</scope>
7082
</dependency>
7183

7284
<dependency>
@@ -76,13 +88,16 @@ under the License.
7688
</dependency>
7789

7890
<dependency>
79-
<groupId>org.apache.kudu</groupId>
80-
<artifactId>kudu-client</artifactId>
91+
<groupId>org.apache.flink</groupId>
92+
<artifactId>flink-test-utils-junit</artifactId>
93+
<scope>test</scope>
8194
</dependency>
8295

8396
<dependency>
8497
<groupId>org.apache.flink</groupId>
85-
<artifactId>flink-connector-test-utils</artifactId>
98+
<artifactId>flink-runtime</artifactId>
99+
<version>${flink.version}</version>
100+
<type>test-jar</type>
86101
<scope>test</scope>
87102
</dependency>
88103

flink-sql-connector-kudu/pom.xml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one
4+
or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership. The ASF licenses this file
7+
to you under the Apache License, Version 2.0 (the
8+
"License"); you may not use this file except in compliance
9+
with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing,
14+
software distributed under the License is distributed on an
15+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
KIND, either express or implied. See the License for the
17+
specific language governing permissions and limitations
18+
under the License.
19+
-->
20+
<project xmlns="http://maven.apache.org/POM/4.0.0"
21+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23+
24+
<modelVersion>4.0.0</modelVersion>
25+
26+
<parent>
27+
<groupId>org.apache.flink</groupId>
28+
<artifactId>flink-connector-kudu-parent</artifactId>
29+
<version>2.0-SNAPSHOT</version>
30+
</parent>
31+
32+
<artifactId>flink-sql-connector-kudu</artifactId>
33+
<name>Flink : Connectors : SQL : Kudu</name>
34+
<packaging>jar</packaging>
35+
36+
<dependencies>
37+
<dependency>
38+
<groupId>org.apache.flink</groupId>
39+
<artifactId>flink-connector-kudu</artifactId>
40+
<version>${project.version}</version>
41+
</dependency>
42+
</dependencies>
43+
44+
<build>
45+
<plugins>
46+
<plugin>
47+
<groupId>org.apache.maven.plugins</groupId>
48+
<artifactId>maven-shade-plugin</artifactId>
49+
<executions>
50+
<execution>
51+
<id>shade-flink</id>
52+
<phase>package</phase>
53+
<goals>
54+
<goal>shade</goal>
55+
</goals>
56+
<configuration>
57+
<artifactSet>
58+
<includes>
59+
<include>*:*</include>
60+
</includes>
61+
<excludes>
62+
<exclude>com.google.code.findbugs:jsr305</exclude>
63+
<exclude>org.apache.yetus:*</exclude>
64+
<exclude>org.slf4j:*</exclude>
65+
</excludes>
66+
</artifactSet>
67+
<filters>
68+
<filter>
69+
<artifact>*:*</artifact>
70+
<excludes>
71+
<exclude>META-INF/native/libnetty**</exclude>
72+
<exclude>META-INF/native-image/**</exclude>
73+
<exclude>META-INF/services/reactor.blockhound.integration.BlockHoundIntegration</exclude>
74+
<exclude>META-INF/io.netty.versions.properties</exclude>
75+
<exclude>META-INF/micrometer-core.properties</exclude>
76+
<exclude>META-INF/LICENSE.txt</exclude>
77+
</excludes>
78+
</filter>
79+
</filters>
80+
<relocations>
81+
<relocation>
82+
<pattern>org.apache.kudu</pattern>
83+
<shadedPattern>org.apache.flink.kudu.shaded.org.apache.kudu</shadedPattern>
84+
</relocation>
85+
</relocations>
86+
</configuration>
87+
</execution>
88+
</executions>
89+
</plugin>
90+
</plugins>
91+
</build>
92+
93+
</project>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
flink-sql-connector-kudu
2+
Copyright 2014-2025 The Apache Software Foundation
3+
4+
This product includes software developed at
5+
The Apache Software Foundation (http://www.apache.org/).
6+
7+
This project bundles the following dependencies under the Apache Software License 2.0. (http://www.apache.org/licenses/LICENSE-2.0.txt)
8+
9+
- org.apache.kudu:kudu-client:1.17.1
10+
- commons-codec:commons-codec:1.17.1
11+
12+
This project bundles the following dependencies under the BSD-3 license (https://opensource.org/license/BSD-3-Clause).
13+
14+
- com.stumbleupon:async:1.4.1

pom.xml

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ under the License.
7474

7575
<modules>
7676
<module>flink-connector-kudu</module>
77+
<module>flink-sql-connector-kudu</module>
7778
</modules>
7879

7980
<dependencies>
@@ -122,24 +123,12 @@ under the License.
122123
<!-- This section defines the module versions that are used if nothing else is specified. -->
123124
<dependencyManagement>
124125
<dependencies>
125-
<dependency>
126-
<groupId>org.apache.flink</groupId>
127-
<artifactId>flink-clients</artifactId>
128-
<version>${flink.version}</version>
129-
</dependency>
130-
131126
<dependency>
132127
<groupId>org.apache.flink</groupId>
133128
<artifactId>flink-connector-base</artifactId>
134129
<version>${flink.version}</version>
135130
</dependency>
136131

137-
<dependency>
138-
<groupId>org.apache.flink</groupId>
139-
<artifactId>flink-connector-test-utils</artifactId>
140-
<version>${flink.version}</version>
141-
</dependency>
142-
143132
<dependency>
144133
<groupId>org.apache.flink</groupId>
145134
<artifactId>flink-streaming-java</artifactId>
@@ -170,26 +159,34 @@ under the License.
170159
<version>${flink.version}</version>
171160
</dependency>
172161

162+
<dependency>
163+
<groupId>org.apache.flink</groupId>
164+
<artifactId>flink-connector-test-utils</artifactId>
165+
<version>${flink.version}</version>
166+
</dependency>
167+
173168
<dependency>
174169
<groupId>org.apache.flink</groupId>
175170
<artifactId>flink-test-utils</artifactId>
176171
<version>${flink.version}</version>
177172
<exclusions>
178173
<exclusion>
179-
<groupId>org.apache.commons</groupId>
180-
<artifactId>commons-compress</artifactId>
174+
<groupId>org.apache.yetus</groupId>
175+
<artifactId>audience-annotations</artifactId>
181176
</exclusion>
182177
<exclusion>
183178
<groupId>org.xerial.snappy</groupId>
184179
<artifactId>snappy-java</artifactId>
185180
</exclusion>
186-
<exclusion>
187-
<groupId>org.apache.yetus</groupId>
188-
<artifactId>audience-annotations</artifactId>
189-
</exclusion>
190181
</exclusions>
191182
</dependency>
192183

184+
<dependency>
185+
<groupId>org.apache.flink</groupId>
186+
<artifactId>flink-test-utils-junit</artifactId>
187+
<version>${flink.version}</version>
188+
</dependency>
189+
193190
<!-- Flink ArchUnit -->
194191
<dependency>
195192
<groupId>org.apache.flink</groupId>
@@ -286,6 +283,12 @@ under the License.
286283
<version>2.24.0</version>
287284
</dependency>
288285

286+
<dependency>
287+
<groupId>org.apache.commons</groupId>
288+
<artifactId>commons-compress</artifactId>
289+
<version>1.26.0</version>
290+
</dependency>
291+
289292
<dependency>
290293
<groupId>org.apache.commons</groupId>
291294
<artifactId>commons-lang3</artifactId>

0 commit comments

Comments
 (0)