Skip to content

Commit 034c6d2

Browse files
committed
Import Spring Framework BOM and update core dep
Replace individual Spring artifacts in the parent POM with an import of the spring-framework-bom (type=pom, scope=import) to centralize Spring dependency management. In microsphere-java-core, change the test dependency from spring-context to spring-core so the module depends on the correct core artifact while retaining test scope.
1 parent 6206b95 commit 034c6d2

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

microsphere-java-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<!-- Spring -->
8080
<dependency>
8181
<groupId>org.springframework</groupId>
82-
<artifactId>spring-context</artifactId>
82+
<artifactId>spring-core</artifactId>
8383
<scope>test</scope>
8484
</dependency>
8585

microsphere-java-parent/pom.xml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,13 @@
3636
<scope>import</scope>
3737
</dependency>
3838

39-
<!-- Spring -->
39+
<!-- Spring Framework BOM -->
4040
<dependency>
4141
<groupId>org.springframework</groupId>
42-
<artifactId>spring-context</artifactId>
42+
<artifactId>spring-framework-bom</artifactId>
4343
<version>${spring-framework.version}</version>
44-
<scope>test</scope>
45-
</dependency>
46-
47-
<dependency>
48-
<groupId>org.springframework</groupId>
49-
<artifactId>spring-web</artifactId>
50-
<version>${spring-framework.version}</version>
51-
<scope>test</scope>
44+
<type>pom</type>
45+
<scope>import</scope>
5246
</dependency>
5347

5448
</dependencies>

0 commit comments

Comments
 (0)