Document Using Kafka 3.6.0 With This Version (#2844)

This commit is contained in:
Gary Russell
2023-10-16 09:53:19 -04:00
committed by GitHub
parent 98029e3081
commit acc1c9cd99

View File

@@ -14,7 +14,7 @@ For example, {project-version} is supported by Spring Boot 2.7.x which brings in
.Maven
----
<properties>
<kafka.version>3.5.0</kafka.version>
<kafka.version>3.6.0</kafka.version>
<spring-kafka.version>{project-version}</spring-kafka.version>
</properties>
@@ -33,18 +33,29 @@ For example, {project-version} is supported by Spring Boot 2.7.x which brings in
<artifactId>spring-kafka-test</artifactId>
<scope>test</scope>
</dependency>
<!-- Required for the embedded broker when using 3.6.0 or later with Boot 2.7.x -->
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka-server-common</artifactId>
<classifier>test</classifier>
<scope>test</scope>
<version>${kafka.version}</version>
</dependency>
----
[source, groovy, subs="+attributes", role="secondary"]
.Gradle
----
ext['kafka.version'] = '3.5.0'
ext['kafka.version'] = '3.6.0'
ext['spring-kafka.version'] = '{project-version}'
dependencies {
implementation 'org.springframework.kafka:spring-kafka'
implementation 'org.apache.kafka:kafka-streams' // optional - only needed when using kafka-streams
testImplementation 'org.springframework.kafka:spring-kafka-test'
// the following is required for the embedded broker when using 3.6.0 or later with Boot 2.7.x
testImplementation "org.apache.kafka:kafka-server-common:$kafka.version:test"
}
----
====