From 1934b9f9440509fe3d456dfb0cafb43dd99e3d33 Mon Sep 17 00:00:00 2001 From: timis1 <12120641+timis1@users.noreply.github.com> Date: Sat, 16 Dec 2023 11:03:41 +0200 Subject: [PATCH] JAVA-27019 Simplify spring-di modules' poms (#15330) --- spring-di-2/pom.xml | 34 ++---------- spring-di-3/pom.xml | 30 +--------- .../java/com/baeldung/autowiring/App.java | 1 - spring-di/pom.xml | 55 +------------------ 4 files changed, 9 insertions(+), 111 deletions(-) diff --git a/spring-di-2/pom.xml b/spring-di-2/pom.xml index 898dd182f1..6b4ecc6039 100644 --- a/spring-di-2/pom.xml +++ b/spring-di-2/pom.xml @@ -9,46 +9,21 @@ com.baeldung - parent-spring-6 + parent-boot-3 0.0.1-SNAPSHOT - ../parent-spring-6 + ../parent-boot-3 - - - - org.apache.logging.log4j - log4j-bom - ${log4j2.version} - import - pom - - - org.springframework.boot - spring-boot-dependencies - ${spring-boot.version} - pom - import - - - - org.springframework.boot spring-boot-starter-web + ${spring-boot.version} org.springframework.boot spring-boot-starter-data-jpa - - - org.springframework - spring-aspects - - - org.springframework.boot - spring-boot-starter-test + ${spring-boot.version} @@ -79,7 +54,6 @@ - 3.1.2 1.13.1 2.17.1 diff --git a/spring-di-3/pom.xml b/spring-di-3/pom.xml index ba1a18ae8c..818ecc509c 100644 --- a/spring-di-3/pom.xml +++ b/spring-di-3/pom.xml @@ -9,44 +9,20 @@ com.baeldung - parent-spring-6 + parent-boot-3 0.0.1-SNAPSHOT - ../parent-spring-6 + ../parent-boot-3 - - - - org.apache.logging.log4j - log4j-bom - ${log4j2.version} - import - pom - - - org.springframework.boot - spring-boot-dependencies - ${spring-boot.version} - pom - import - - - - - - org.springframework.boot - spring-boot-starter-web - org.springframework.boot spring-boot-starter-test + ${spring-boot.version} - 3.1.2 - 2.17.1 2.0.9 1.4.11 diff --git a/spring-di-3/src/main/java/com/baeldung/autowiring/App.java b/spring-di-3/src/main/java/com/baeldung/autowiring/App.java index d2d0db7a60..873b152da1 100644 --- a/spring-di-3/src/main/java/com/baeldung/autowiring/App.java +++ b/spring-di-3/src/main/java/com/baeldung/autowiring/App.java @@ -2,7 +2,6 @@ package com.baeldung.autowiring; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.context.annotation.ComponentScan; @SpringBootApplication public class App { diff --git a/spring-di/pom.xml b/spring-di/pom.xml index d073f5359d..a1be835af7 100644 --- a/spring-di/pom.xml +++ b/spring-di/pom.xml @@ -10,44 +10,12 @@ com.baeldung - parent-spring-6 + parent-boot-3 0.0.1-SNAPSHOT - ../parent-spring-6 + ../parent-boot-3 - - - - org.springframework - spring-framework-bom - ${spring.version} - pom - import - - - org.springframework - spring-core - ${spring.version} - - - - - - org.springframework - spring-test - ${spring.version} - - - org.springframework - spring-beans - ${spring.version} - - - org.springframework - spring-context - ${spring.version} - com.google.guava guava @@ -63,12 +31,6 @@ spring-boot-starter ${spring-boot.version} - - org.springframework.boot - spring-boot-test - ${spring-boot.version} - test - commons-io commons-io @@ -79,17 +41,6 @@ aspectjweaver ${aspectjweaver.version} - - - - - - - - - - - @@ -132,8 +83,6 @@ org.baeldung.org.baeldung.sample.App - - 3.1.2 1.9.20.1