Skip to content

Commit acc1c9c

Browse files
authored
Document Using Kafka 3.6.0 With This Version (#2844)
1 parent 98029e3 commit acc1c9c

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

spring-kafka-docs/src/main/asciidoc/appendix.adoc

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ For example, {project-version} is supported by Spring Boot 2.7.x which brings in
1414
.Maven
1515
----
1616
<properties>
17-
<kafka.version>3.5.0</kafka.version>
17+
<kafka.version>3.6.0</kafka.version>
1818
<spring-kafka.version>{project-version}</spring-kafka.version>
1919
</properties>
2020
@@ -33,18 +33,29 @@ For example, {project-version} is supported by Spring Boot 2.7.x which brings in
3333
<artifactId>spring-kafka-test</artifactId>
3434
<scope>test</scope>
3535
</dependency>
36+
37+
<!-- Required for the embedded broker when using 3.6.0 or later with Boot 2.7.x -->
38+
<dependency>
39+
<groupId>org.apache.kafka</groupId>
40+
<artifactId>kafka-server-common</artifactId>
41+
<classifier>test</classifier>
42+
<scope>test</scope>
43+
<version>${kafka.version}</version>
44+
</dependency>
3645
----
3746
3847
[source, groovy, subs="+attributes", role="secondary"]
3948
.Gradle
4049
----
41-
ext['kafka.version'] = '3.5.0'
50+
ext['kafka.version'] = '3.6.0'
4251
ext['spring-kafka.version'] = '{project-version}'
4352
4453
dependencies {
4554
implementation 'org.springframework.kafka:spring-kafka'
4655
implementation 'org.apache.kafka:kafka-streams' // optional - only needed when using kafka-streams
4756
testImplementation 'org.springframework.kafka:spring-kafka-test'
57+
// the following is required for the embedded broker when using 3.6.0 or later with Boot 2.7.x
58+
testImplementation "org.apache.kafka:kafka-server-common:$kafka.version:test"
4859
}
4960
----
5061
====

0 commit comments

Comments
 (0)