|
60 | 60 |
|
61 | 61 | <dependency>
|
62 | 62 | <groupId>org.apache.kafka</groupId>
|
63 |
| - <artifactId>kafka_2.12</artifactId> |
| 63 | + <artifactId>kafka-clients</artifactId> |
64 | 64 | </dependency>
|
65 | 65 |
|
66 | 66 | <dependency>
|
67 |
| - <groupId>org.apache.kafka</groupId> |
68 |
| - <artifactId>kafka-clients</artifactId> |
| 67 | + <groupId>org.apache.zookeeper</groupId> |
| 68 | + <artifactId>zookeeper</artifactId> |
| 69 | + <scope>runtime</scope> |
| 70 | + <!-- This is the version used by kafka tranitively --> |
| 71 | + <version>3.8.4</version> |
| 72 | + <exclusions> |
| 73 | + <exclusion> |
| 74 | + <groupId>ch.qos.logback</groupId> |
| 75 | + <artifactId>logback-core</artifactId> |
| 76 | + </exclusion> |
| 77 | + <exclusion> |
| 78 | + <groupId>ch.qos.logback</groupId> |
| 79 | + <artifactId>logback-classic</artifactId> |
| 80 | + </exclusion> |
| 81 | + </exclusions> |
69 | 82 | </dependency>
|
70 | 83 |
|
71 |
| - |
72 | 84 | <dependency>
|
73 | 85 | <groupId>javax.inject</groupId>
|
74 | 86 | <artifactId>javax.inject</artifactId>
|
|
144 | 156 | <scope>runtime</scope>
|
145 | 157 | </dependency>
|
146 | 158 |
|
147 |
| - <dependency> |
148 |
| - <groupId>org.apache.zookeeper</groupId> |
149 |
| - <artifactId>zookeeper</artifactId> |
150 |
| - <scope>runtime</scope> |
151 |
| - </dependency> |
152 | 159 |
|
153 | 160 | <dependency>
|
154 | 161 | <groupId>com.101tec</groupId>
|
|
174 | 181 | <scope>test</scope>
|
175 | 182 | </dependency>
|
176 | 183 |
|
| 184 | + <!-- Dependencies required for EmbeddedKafka --> |
| 185 | + <dependency> |
| 186 | + <groupId>org.apache.kafka</groupId> |
| 187 | + <artifactId>kafka_2.12</artifactId> |
| 188 | + <version>${dep.kafka.version}</version> |
| 189 | + <classifier>test</classifier> |
| 190 | + <scope>test</scope> |
| 191 | + <exclusions> |
| 192 | + <exclusion> |
| 193 | + <groupId>commons-logging</groupId> |
| 194 | + <artifactId>commons-logging</artifactId> |
| 195 | + </exclusion> |
| 196 | + </exclusions> |
| 197 | + </dependency> |
| 198 | + |
| 199 | + <dependency> |
| 200 | + <groupId>org.apache.kafka</groupId> |
| 201 | + <artifactId>kafka_2.12</artifactId> |
| 202 | + <version>${dep.kafka.version}</version> |
| 203 | + <scope>test</scope> |
| 204 | + <exclusions> |
| 205 | + <exclusion> |
| 206 | + <groupId>commons-logging</groupId> |
| 207 | + <artifactId>commons-logging</artifactId> |
| 208 | + </exclusion> |
| 209 | + </exclusions> |
| 210 | + </dependency> |
| 211 | + |
| 212 | + <dependency> |
| 213 | + <groupId>org.apache.kafka</groupId> |
| 214 | + <artifactId>kafka-clients</artifactId> |
| 215 | + <version>${dep.kafka.version}</version> |
| 216 | + <classifier>test</classifier> |
| 217 | + <scope>test</scope> |
| 218 | + </dependency> |
| 219 | + |
| 220 | + <dependency> |
| 221 | + <groupId>org.apache.kafka</groupId> |
| 222 | + <artifactId>kafka-server-common</artifactId> |
| 223 | + <version>${dep.kafka.version}</version> |
| 224 | + <classifier>test</classifier> |
| 225 | + <scope>test</scope> |
| 226 | + </dependency> |
| 227 | + |
| 228 | + <dependency> |
| 229 | + <groupId>org.junit.jupiter</groupId> |
| 230 | + <artifactId>junit-jupiter</artifactId> |
| 231 | + <version>5.10.2</version> |
| 232 | + <scope>test</scope> |
| 233 | + </dependency> |
| 234 | + <!-- Dependencies required for EmbeddedKafka --> |
| 235 | + |
177 | 236 | <dependency>
|
178 | 237 | <groupId>org.testng</groupId>
|
179 | 238 | <artifactId>testng</artifactId>
|
|
241 | 300 | <plugin>
|
242 | 301 | <groupId>org.apache.maven.plugins</groupId>
|
243 | 302 | <artifactId>maven-surefire-plugin</artifactId>
|
| 303 | + <dependencies> |
| 304 | + <dependency> |
| 305 | + <groupId>org.apache.maven.surefire</groupId> |
| 306 | + <artifactId>surefire-testng</artifactId> |
| 307 | + <version>3.0.0-M7</version> |
| 308 | + </dependency> |
| 309 | + </dependencies> |
244 | 310 | <configuration>
|
245 | 311 | <!-- integration tests take a very long time so only run them in the CI server -->
|
246 | 312 | <excludes>
|
247 | 313 | <exclude>**/TestKafkaDistributed.java</exclude>
|
248 | 314 | </excludes>
|
249 | 315 | </configuration>
|
250 | 316 | </plugin>
|
| 317 | + <plugin> |
| 318 | + <groupId>org.basepom.maven</groupId> |
| 319 | + <artifactId>duplicate-finder-maven-plugin</artifactId> |
| 320 | + <configuration> |
| 321 | + <ignoredResourcePatterns combine.children="append"> |
| 322 | + <ignoredResourcePattern>kafka/kafka-version.properties</ignoredResourcePattern> |
| 323 | + <ignoredResourcePattern>log4j.properties</ignoredResourcePattern> |
| 324 | + </ignoredResourcePatterns> |
| 325 | + </configuration> |
| 326 | + </plugin> |
251 | 327 | </plugins>
|
252 | 328 | </build>
|
253 | 329 |
|
|
0 commit comments