Skip to content

Commit 67687a1

Browse files
committed
Remove kafka_2.13 broker dependency from spring-kafka-test
Removes the monolithic Scala-based Kafka broker dependency (kafka_2.13) in favor of the newer modular Java-based Kafka dependencies. The test module now relies exclusively on modular artifacts like kafka-server, kafka-metadata, and kafka-server-common, which provide the necessary test utilities without requiring the Scala runtime. - Remove scalaVersion variable from build configuration - Remove kafka_2.13 dependency and its test classifier variant - Rely on existing modular dependencies (kafka-server, kafka-metadata, kafka-server-common, etc.) Signed-off-by: Soby Chacko <soby.chacko@broadcom.com>
1 parent 5835712 commit 67687a1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

build.gradle

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ ext {
6868
micrometerTracingVersion = '1.6.0-RC1'
6969
mockitoVersion = '5.19.0'
7070
reactorVersion = '2025.0.0-RC1'
71-
scalaVersion = '2.13'
7271
springBootVersion = '3.5.0' // docs module
7372
springDataVersion = '2025.1.0-RC1'
7473
springVersion = '7.0.0-RC1'
@@ -326,12 +325,6 @@ project ('spring-kafka-test') {
326325
api "org.apache.kafka:kafka-server-common:$kafkaVersion"
327326
api "org.apache.kafka:kafka-server-common:$kafkaVersion:test"
328327
api "org.apache.kafka:kafka-streams-test-utils:$kafkaVersion"
329-
api ("org.apache.kafka:kafka_$scalaVersion:$kafkaVersion") {
330-
exclude group: 'commons-logging'
331-
}
332-
api ("org.apache.kafka:kafka_$scalaVersion:$kafkaVersion:test") {
333-
exclude group: 'commons-logging'
334-
}
335328
api 'org.junit.jupiter:junit-jupiter-api'
336329
api 'org.junit.platform:junit-platform-launcher'
337330
optionalApi "org.hamcrest:hamcrest-core:$hamcrestVersion"

0 commit comments

Comments
 (0)