Skip to content

Commit 5e0a7ac

Browse files
committed
Docs: Remove Obsolete Gradle Dependencies
1 parent b902b63 commit 5e0a7ac

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
== Override Spring Boot Dependencies
33

44
When using Spring for Apache Kafka in a Spring Boot application, the Apache Kafka dependency versions are determined by Spring Boot's dependency management.
5-
If you wish to use a different version of `kafka-clients` or `kafka-streams`, and use the embedded kafka broker for testing, you need to override their version used by Spring Boot dependency management and add two `test` artifacts for Apache Kafka.
5+
If you wish to use a different version of `kafka-clients` or `kafka-streams`, and use the embedded kafka broker for testing, you need to override their version used by Spring Boot dependency management; set the `kafka.version` property.
6+
7+
Or, to use a different Spring for Apache Kafka version with a supported Spring Boot version, set the `spring-kafka.version` property.
68

79
Or, to use a different Spring for Apache Kafka version with a supported Spring Boot version, set the `spring-kafka.version` property.
810
For example, {project-version} is supported by Spring Boot 2.7.x which brings in 2.8.x by default.
@@ -41,13 +43,8 @@ ext['spring-kafka.version'] = '{project-version}'
4143
4244
dependencies {
4345
implementation 'org.springframework.kafka:spring-kafka'
44-
implementation "org.apache.kafka:kafka-streams" // optional - only needed when using kafka-streams
45-
testImplementation ('org.springframework.kafka:spring-kafka-test') {
46-
// needed if downgrading to Apache Kafka 2.8.1
47-
exclude group: 'org.apache.zookeeper', module: 'zookeeper'
48-
}
49-
testImplementation "org.apache.kafka:kafka-clients:${kafka.version}:test"
50-
testImplementation "org.apache.kafka:kafka_2.13:${kafka.version}:test"
46+
implementation 'org.apache.kafka:kafka-streams' // optional - only needed when using kafka-streams
47+
testImplementation 'org.springframework.kafka:spring-kafka-test'
5148
}
5249
----
5350
====

0 commit comments

Comments
 (0)