Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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]
======
Expand All @@ -38,16 +38,16 @@ Maven::
[source,xml,subs="+attributes",role="primary"]
----
<dependency>
<groupId>org.springframework.kafka</groupId>
<artifactId>spring-kafka</artifactId>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-kafka</artifactId>
</dependency>
----

Gradle::
+
[source,groovy,subs="+attributes",role="secondary"]
----
implementation 'org.springframework.kafka:spring-kafka'
implementation 'org.springframework.boot:spring-boot-starter-kafka'
----
======

Expand Down
23 changes: 23 additions & 0 deletions spring-kafka-docs/src/main/antora/modules/ROOT/pages/testing.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
----
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-kafka-test</artifactId>
<scope>test</scope>
</dependency>
----

Gradle::
+
[source,groovy,subs="+attributes",role="secondary"]
----
testImplementation 'org.springframework.boot:spring-boot-starter-kafka-test'
----
======

[[ekb]]
== Embedded Kafka Broker

Expand Down