]> juplo.de Git - demos/kafka/training/commitdiff
Migration Spring-Boot 3.4.1 -> 4.0.2 (producer/spring-producer)
authorKai Moritz <kai@juplo.de>
Fri, 13 Mar 2026 20:45:45 +0000 (21:45 +0100)
committerKai Moritz <kai.milan.moritz@googlemail.com>
Fri, 12 Jun 2026 17:17:33 +0000 (19:17 +0200)
build.gradle
pom.xml
src/test/java/de/juplo/kafka/ApplicationTests.java

index 77752b09e1820b0c474de8629ea6cd9fabe59b4c..91b1a161ba02fcdd70aabaf07d3e9c5eaf07cc7d 100644 (file)
@@ -35,8 +35,8 @@ dependencies {
        annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
        annotationProcessor 'org.projectlombok:lombok'
        testImplementation 'org.springframework.boot:spring-boot-starter-test'
-       testImplementation 'org.springframework.kafka:spring-kafka'
-       testImplementation 'org.springframework.kafka:spring-kafka-test'
+       testImplementation 'org.springframework.boot:spring-boot-starter-webmvc-test'
+       testImplementation 'org.springframework.boot:spring-boot-starter-kafka-test'
        testCompileOnly 'org.projectlombok:lombok'
        testAnnotationProcessor 'org.projectlombok:lombok'
        testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
diff --git a/pom.xml b/pom.xml
index 3e711b3edbe56016273b9f1da1a4111e717db1a9..3ab5c8c050e42bf5e2c3609408bdafe02c628759 100644 (file)
--- a/pom.xml
+++ b/pom.xml
       <scope>test</scope>
     </dependency>
     <dependency>
-      <groupId>org.springframework.kafka</groupId>
-      <artifactId>spring-kafka</artifactId>
+      <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-starter-webmvc-test</artifactId>
       <scope>test</scope>
     </dependency>
     <dependency>
-      <groupId>org.springframework.kafka</groupId>
-      <artifactId>spring-kafka-test</artifactId>
+      <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-starter-kafka-test</artifactId>
       <scope>test</scope>
     </dependency>
     <dependency>
index 29ca80a72b637b71cc06cac4b01c3d24b48cd1d9..68d2a8add5d6213ed8162f78d29513789db93379 100644 (file)
@@ -5,9 +5,9 @@ import org.apache.kafka.clients.consumer.ConsumerRecord;
 import org.junit.jupiter.api.BeforeEach;
 import org.junit.jupiter.api.Test;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
 import org.springframework.boot.test.context.SpringBootTest;
 import org.springframework.boot.test.context.TestConfiguration;
+import org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc;
 import org.springframework.context.annotation.Bean;
 import org.springframework.kafka.annotation.KafkaListener;
 import org.springframework.kafka.test.context.EmbeddedKafka;