]> 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.milan.moritz@googlemail.com>
Fri, 12 Jun 2026 18:47:01 +0000 (18:47 +0000)
build.gradle
pom.xml
src/test/java/de/juplo/kafka/ApplicationTests.java

index 39d57241d9fb4d9496380b748a1ae9be6e7254f2..fb429bdbe57f02e96727ff13dc067eef1072bef1 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 b075e9225471dc5f687899a95fa01e91bbc99868..b5d0a59b4616e2bcb95f5c78dbbf00d4746c3696 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;