Skip to content

Commit 4390405

Browse files
committed
Add appendix for 2.1.x kafka-clients jar
1 parent 6c79d95 commit 4390405

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

src/reference/asciidoc/appendix.adoc

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,53 @@
1+
[[deps-for-21x]]
2+
== Override Dependencies to use the 2.1.x kafka-clients with an Embedded Broker
3+
4+
When using `spring-kafka-test` (version 2.2.x) with the 2.1.x `kafka-clients` jar, you will need to override certain transitive dependencies as follows:
5+
6+
[source, xml]
7+
----
8+
<dependency>
9+
<groupId>org.springframework.kafka</groupId>
10+
<artifactId>spring-kafka</artifactId>
11+
<version>${spring.kafka.version}</version>
12+
</dependency>
13+
14+
<dependency>
15+
<groupId>org.springframework.kafka</groupId>
16+
<artifactId>spring-kafka-test</artifactId>
17+
<version>${spring.kafka.version}</version>
18+
<scope>test</scope>
19+
</dependency>
20+
21+
<dependency>
22+
<groupId>org.apache.kafka</groupId>
23+
<artifactId>kafka-clients</artifactId>
24+
<version>2.1.0</version>
25+
</dependency>
26+
27+
<dependency>
28+
<groupId>org.apache.kafka</groupId>
29+
<artifactId>kafka-clients</artifactId>
30+
<version>2.1.0</version>
31+
<classifier>test</classifier>
32+
</dependency>
33+
34+
<dependency>
35+
<groupId>org.apache.kafka</groupId>
36+
<artifactId>kafka_2.11</artifactId>
37+
<version>2.1.0</version>
38+
<scope>test</scope>
39+
</dependency>
40+
41+
<dependency>
42+
<groupId>org.apache.kafka</groupId>
43+
<artifactId>kafka_2.11</artifactId>
44+
<version>2.1.0</version>
45+
<classifier>test</classifier>
46+
<scope>test</scope>
47+
</dependency>
48+
----
49+
50+
[appendix]
151
[[history]]
252
== Change History
353

0 commit comments

Comments
 (0)