]> juplo.de Git - demos/kafka/training/commitdiff
Migration Spring-Boot 3.4.1 -> 4.0.2 (consumer/spring-consumer)
authorKai Moritz <kai@juplo.de>
Fri, 13 Mar 2026 20:45:45 +0000 (21:45 +0100)
committerKai Moritz <kai@juplo.de>
Sun, 22 Mar 2026 20:45:56 +0000 (21:45 +0100)
build.gradle
pom.xml
src/test/java/de/juplo/kafka/ApplicationTests.java

index 4f0a10293bcadfa23e47e39ee19edd4aae443868..77e61365fdaaed0a39fbe8b454930677f73a2efb 100644 (file)
@@ -36,8 +36,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 3c65b3f86a9da8018a753833150d7b83b76aa367..d2bf833e62bb7aa137027d58c54ee109e9b78b6f 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>
   </dependencies>
index ae119bff8ffc88bd6e0ca01ec4520ca8feaadf23..61197cbf1b82dc55d9c3123ab9a4ad38091b2e59 100644 (file)
@@ -2,8 +2,8 @@ package de.juplo.kafka;
 
 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.webmvc.test.autoconfigure.AutoConfigureMockMvc;
 import org.springframework.kafka.test.context.EmbeddedKafka;
 import org.springframework.test.web.servlet.MockMvc;