]> juplo.de Git - demos/kafka/training/commitdiff
1. Schritt Live-Umbau: POM anpassen
authorKai Moritz <kai@juplo.de>
Wed, 7 May 2025 18:12:09 +0000 (20:12 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 15 Mar 2026 18:47:14 +0000 (19:47 +0100)
build.gradle
pom.xml

index 2b3515dbcedc481a99a2a2c80dadf5a2eaf435f8..c9e3eb803a1eb6a10be7989424408b748f50f150 100644 (file)
@@ -27,7 +27,7 @@ repositories {
 }
 
 dependencies {
-       implementation 'org.apache.kafka:kafka-clients'
+       implementation 'org.springframework.boot:spring-boot-starter-kafka'
        implementation 'org.springframework.boot:spring-boot-starter-actuator'
        implementation 'org.springframework.boot:spring-boot-starter-validation'
        implementation 'org.springframework.boot:spring-boot-starter-web'
@@ -37,7 +37,6 @@ dependencies {
        annotationProcessor 'org.projectlombok:lombok'
        testImplementation 'org.springframework.boot:spring-boot-starter-test'
        testImplementation 'org.springframework.boot:spring-boot-starter-webmvc-test'
-       testImplementation 'org.springframework.boot:spring-boot-starter-kafka'
        testImplementation 'org.springframework.kafka:spring-kafka-test'
        testCompileOnly 'org.projectlombok:lombok'
        testAnnotationProcessor 'org.projectlombok:lombok'
diff --git a/pom.xml b/pom.xml
index 27fbed1a2a4b142682b168816d444d1c16e8dea9..b71fad194b283b426edc1148fa89b58f7bd5702d 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -40,8 +40,8 @@
       <artifactId>spring-boot-starter-validation</artifactId>
     </dependency>
     <dependency>
-      <groupId>org.apache.kafka</groupId>
-      <artifactId>kafka-clients</artifactId>
+      <groupId>org.springframework.boot</groupId>
+      <artifactId>spring-boot-starter-kafka</artifactId>
     </dependency>
     <dependency>
       <groupId>org.projectlombok</groupId>
       <artifactId>spring-boot-starter-webmvc-test</artifactId>
       <scope>test</scope>
     </dependency>
-    <dependency>
-      <groupId>org.springframework.boot</groupId>
-      <artifactId>spring-boot-starter-kafka</artifactId>
-      <scope>test</scope>
-    </dependency>
     <dependency>
       <groupId>org.springframework.kafka</groupId>
       <artifactId>spring-kafka-test</artifactId>