diff --git a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/quick-tour.adoc b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/quick-tour.adoc index 2d54f57f98..182c99d168 100644 --- a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/quick-tour.adoc +++ b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/quick-tour.adoc @@ -29,7 +29,7 @@ implementation 'org.springframework.kafka:spring-kafka:{project-version}' ---- ====== -IMPORTANT: When using Spring Boot, (and you haven't used start.spring.io to create your project), omit the version and Boot will automatically bring in the correct version that is compatible with your Boot version: +IMPORTANT: When using Spring Boot, (and you haven't used start.spring.io to create your project), use the `spring-boot-starter-kafka` dependency and omit the version; Boot will automatically bring in the correct version that is compatible with your Boot version: [tabs] ====== @@ -38,8 +38,8 @@ Maven:: [source,xml,subs="+attributes",role="primary"] ---- - org.springframework.kafka - spring-kafka + org.springframework.boot + spring-boot-starter-kafka ---- @@ -47,7 +47,7 @@ Gradle:: + [source,groovy,subs="+attributes",role="secondary"] ---- -implementation 'org.springframework.kafka:spring-kafka' +implementation 'org.springframework.boot:spring-boot-starter-kafka' ---- ====== diff --git a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/testing.adoc b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/testing.adoc index c98d81dcb8..fc37e9a4fe 100644 --- a/spring-kafka-docs/src/main/antora/modules/ROOT/pages/testing.adoc +++ b/spring-kafka-docs/src/main/antora/modules/ROOT/pages/testing.adoc @@ -3,6 +3,29 @@ The `spring-kafka-test` jar contains some useful utilities to assist with testing your applications. +IMPORTANT: When using Spring Boot, use the `spring-boot-starter-kafka-test` dependency instead: + +[tabs] +====== +Maven:: ++ +[source,xml,subs="+attributes",role="primary"] +---- + + org.springframework.boot + spring-boot-starter-kafka-test + test + +---- + +Gradle:: ++ +[source,groovy,subs="+attributes",role="secondary"] +---- +testImplementation 'org.springframework.boot:spring-boot-starter-kafka-test' +---- +====== + [[ekb]] == Embedded Kafka Broker