@@ -43,15 +43,29 @@ under the License.
43
43
<artifactId >flink-connector-kafka</artifactId >
44
44
<version >${project.version} </version >
45
45
</dependency >
46
+ <dependency >
47
+ <groupId >org.slf4j</groupId >
48
+ <artifactId >slf4j-api</artifactId >
49
+ </dependency >
50
+ <dependency >
51
+ <groupId >org.apache.flink</groupId >
52
+ <artifactId >flink-core</artifactId >
53
+ </dependency >
54
+ <dependency >
55
+ <groupId >org.apache.kafka</groupId >
56
+ <artifactId >kafka-clients</artifactId >
57
+ </dependency >
58
+ <dependency >
59
+ <groupId >org.testcontainers</groupId >
60
+ <artifactId >testcontainers</artifactId >
61
+ </dependency >
62
+ <dependency >
63
+ <groupId >junit</groupId >
64
+ <artifactId >junit</artifactId >
65
+ </dependency >
46
66
<dependency >
47
67
<groupId >org.apache.flink</groupId >
48
68
<artifactId >flink-test-utils-junit</artifactId >
49
- <scope >compile</scope >
50
- </dependency >
51
- <dependency >
52
- <groupId >org.junit.jupiter</groupId >
53
- <artifactId >junit-jupiter</artifactId >
54
- <scope >compile</scope >
55
69
</dependency >
56
70
<dependency >
57
71
<groupId >org.apache.flink</groupId >
@@ -67,18 +81,47 @@ under the License.
67
81
</exclusion >
68
82
</exclusions >
69
83
</dependency >
70
- <dependency >
71
- <groupId >org.apache.flink</groupId >
72
- <artifactId >flink-connector-base</artifactId >
73
- <version >${flink.version} </version >
74
- <scope >test</scope >
75
- </dependency >
76
-
77
- <dependency >
78
- <groupId >org.apache.kafka</groupId >
79
- <artifactId >kafka-clients</artifactId >
80
- <version >${kafka.version} </version >
81
- </dependency >
84
+ <dependency >
85
+ <groupId >org.apache.flink</groupId >
86
+ <artifactId >flink-connector-kafka</artifactId >
87
+ <version >${project.version} </version >
88
+ <type >test-jar</type >
89
+ </dependency >
90
+ <dependency >
91
+ <groupId >org.apache.flink</groupId >
92
+ <artifactId >flink-runtime</artifactId >
93
+ <scope >test</scope >
94
+ </dependency >
95
+ <dependency >
96
+ <groupId >org.apache.flink</groupId >
97
+ <artifactId >flink-connector-base</artifactId >
98
+ <scope >test</scope >
99
+ </dependency >
100
+ <dependency >
101
+ <groupId >org.apache.flink</groupId >
102
+ <artifactId >flink-test-utils</artifactId >
103
+ <scope >test</scope >
104
+ </dependency >
105
+ <dependency >
106
+ <groupId >org.apache.flink</groupId >
107
+ <artifactId >flink-core-api</artifactId >
108
+ <scope >test</scope >
109
+ </dependency >
110
+ <dependency >
111
+ <groupId >org.hamcrest</groupId >
112
+ <artifactId >hamcrest-core</artifactId >
113
+ <scope >test</scope >
114
+ </dependency >
115
+ <dependency >
116
+ <groupId >org.assertj</groupId >
117
+ <artifactId >assertj-core</artifactId >
118
+ <scope >test</scope >
119
+ </dependency >
120
+ <dependency >
121
+ <groupId >org.junit.jupiter</groupId >
122
+ <artifactId >junit-jupiter-api</artifactId >
123
+ <scope >test</scope >
124
+ </dependency >
82
125
83
126
<!-- The following dependencies are for connector/format sql-jars that
84
127
we copy using the maven-dependency-plugin. When extending the test
@@ -90,89 +133,59 @@ under the License.
90
133
<!-- Used by maven-dependency-plugin -->
91
134
<groupId >org.apache.flink</groupId >
92
135
<artifactId >flink-sql-avro</artifactId >
93
- <version >${flink.version} </version >
94
136
<scope >test</scope >
95
137
</dependency >
96
138
<dependency >
97
139
<!-- Used by maven-dependency-plugin -->
98
140
<groupId >org.apache.flink</groupId >
99
141
<artifactId >flink-sql-avro-confluent-registry</artifactId >
100
- <version >${flink.version} </version >
101
142
<scope >test</scope >
102
143
</dependency >
103
144
104
- <dependency >
105
- <groupId >org.testcontainers</groupId >
106
- <artifactId >kafka</artifactId >
107
- </dependency >
145
+ <dependency >
146
+ <groupId >org.testcontainers</groupId >
147
+ <artifactId >kafka</artifactId >
148
+ </dependency >
149
+ <dependency >
150
+ <groupId >org.testcontainers</groupId >
151
+ <artifactId >junit-jupiter</artifactId >
152
+ </dependency >
108
153
109
154
<dependency >
110
- <!-- https://mvnrepository.com/artifact/io.confluent/kafka-avro-serializer -->
111
155
<groupId >io.confluent</groupId >
112
156
<artifactId >kafka-avro-serializer</artifactId >
113
- <version >${confluent.version} </version >
114
157
<scope >test</scope >
115
- <exclusions >
116
- <exclusion >
117
- <groupId >com.google.guava</groupId >
118
- <artifactId >guava</artifactId >
119
- </exclusion >
120
- </exclusions >
121
158
</dependency >
122
159
123
160
<dependency >
124
161
<groupId >io.confluent</groupId >
125
162
<artifactId >kafka-schema-registry-client</artifactId >
126
- <version >${confluent.version} </version >
127
163
<scope >test</scope >
128
164
<exclusions >
129
165
<exclusion >
130
166
<groupId >org.apache.kafka</groupId >
131
167
<artifactId >kafka-clients</artifactId >
132
168
</exclusion >
133
- <exclusion >
134
- <groupId >com.google.guava</groupId >
135
- <artifactId >guava</artifactId >
136
- </exclusion >
137
169
</exclusions >
138
170
</dependency >
139
171
140
172
<dependency >
141
173
<groupId >org.apache.avro</groupId >
142
174
<artifactId >avro</artifactId >
143
- <version >${avro.version} </version >
144
175
<scope >test</scope >
145
176
</dependency >
146
177
147
178
<dependency >
148
179
<groupId >org.apache.flink</groupId >
149
180
<artifactId >flink-connector-test-utils</artifactId >
150
- <version >${flink.version} </version >
151
181
<exclusions >
152
182
<exclusion >
153
183
<groupId >com.google.guava</groupId >
154
184
<artifactId >guava</artifactId >
155
185
</exclusion >
156
186
</exclusions >
187
+ <scope >test</scope >
157
188
</dependency >
158
- <dependency >
159
- <groupId >org.apache.flink</groupId >
160
- <artifactId >flink-connector-kafka</artifactId >
161
- <version >${project.version} </version >
162
- <type >test-jar</type >
163
- </dependency >
164
- <dependency >
165
- <groupId >org.hamcrest</groupId >
166
- <artifactId >hamcrest-all</artifactId >
167
- <version >${hamcrest.version} </version >
168
- <scope >test</scope >
169
- </dependency >
170
- <!-- Needed by Schema Registry -->
171
- <dependency >
172
- <groupId >com.google.guava</groupId >
173
- <artifactId >guava</artifactId >
174
- <version >${guava.version} </version >
175
- </dependency >
176
189
</dependencies >
177
190
178
191
<build >
@@ -194,23 +207,20 @@ under the License.
194
207
<artifactItem >
195
208
<groupId >org.apache.flink</groupId >
196
209
<artifactId >flink-streaming-kafka-test</artifactId >
197
- <version >${project.version} </version >
198
210
<type >jar</type >
199
211
<overWrite >true</overWrite >
200
212
<outputDirectory >${project.build.directory} /dependencies</outputDirectory >
201
213
</artifactItem >
202
214
<artifactItem >
203
215
<groupId >org.apache.flink</groupId >
204
216
<artifactId >flink-sql-avro</artifactId >
205
- <version >${flink.version} </version >
206
217
<destFileName >avro.jar</destFileName >
207
218
<type >jar</type >
208
219
<outputDirectory >${project.build.directory} /dependencies</outputDirectory >
209
220
</artifactItem >
210
221
<artifactItem >
211
222
<groupId >org.apache.flink</groupId >
212
223
<artifactId >flink-sql-avro-confluent-registry</artifactId >
213
- <version >${flink.version} </version >
214
224
<destFileName >avro-confluent.jar</destFileName >
215
225
<type >jar</type >
216
226
<outputDirectory >${project.build.directory} /dependencies</outputDirectory >
@@ -226,36 +236,27 @@ under the License.
226
236
<artifactItem >
227
237
<groupId >org.apache.flink</groupId >
228
238
<artifactId >flink-connector-kafka</artifactId >
229
- <version >${project.version} </version >
230
239
<destFileName >kafka-connector.jar</destFileName >
231
240
<type >jar</type >
232
241
<outputDirectory >${project.build.directory} /dependencies</outputDirectory >
233
242
</artifactItem >
234
243
<artifactItem >
235
244
<groupId >org.apache.flink</groupId >
236
245
<artifactId >flink-connector-test-utils</artifactId >
237
- <version >${flink.version} </version >
238
246
<destFileName >flink-connector-testing.jar</destFileName >
239
247
<type >jar</type >
240
248
<outputDirectory >${project.build.directory} /dependencies</outputDirectory >
241
249
</artifactItem >
242
250
<artifactItem >
243
251
<groupId >org.apache.kafka</groupId >
244
252
<artifactId >kafka-clients</artifactId >
245
- <version >${kafka.version} </version >
246
253
<destFileName >kafka-clients.jar</destFileName >
247
254
<type >jar</type >
248
255
<outputDirectory >${project.build.directory} /dependencies</outputDirectory >
249
256
</artifactItem >
250
- <artifactItem >
251
- <groupId >com.google.guava</groupId >
252
- <artifactId >guava</artifactId >
253
- <version >${guava.version} </version >
254
- <destFileName >guava.jar</destFileName >
255
- <type >jar</type >
256
- <outputDirectory >${project.build.directory} /dependencies</outputDirectory >
257
- </artifactItem >
258
257
</artifactItems >
258
+ <ignoredUnusedDeclaredDependencies >org.apache.flink:flink-streaming-kafka-test,org.apache.flink:flink-sql-avro,org.apache.flink:flink-sql-avro-confluent-registry,org.apache.flink:flink-connector-base
259
+ </ignoredUnusedDeclaredDependencies >
259
260
</configuration >
260
261
</plugin >
261
262
</plugins >
0 commit comments