Skip to content

Commit fbb1858

Browse files
committed
Move JUnit entries earlier in POM
Relocate the JUnit BOM and junit dependency to the top of the dependencyManagement section and remove their duplicate entries later in the file. Uses ${junit-jupiter.version} for the BOM and ${junit.version} for junit; this cleans up the POM organization and avoids duplicated dependency declarations.
1 parent 40120a8 commit fbb1858

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

microsphere-logging-parent/pom.xml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,22 @@
3333
<dependencyManagement>
3434
<dependencies>
3535

36+
<!-- JUnit BOM -->
37+
<dependency>
38+
<groupId>org.junit</groupId>
39+
<artifactId>junit-bom</artifactId>
40+
<version>${junit-jupiter.version}</version>
41+
<type>pom</type>
42+
<scope>import</scope>
43+
</dependency>
44+
45+
<!-- JUnit -->
46+
<dependency>
47+
<groupId>junit</groupId>
48+
<artifactId>junit</artifactId>
49+
<version>${junit.version}</version>
50+
</dependency>
51+
3652
<!-- Microsphere Java Dependencies -->
3753
<dependency>
3854
<groupId>io.github.microsphere-projects</groupId>
@@ -90,22 +106,6 @@
90106
<version>${logback.version}</version>
91107
</dependency>
92108

93-
<!-- JUnit BOM -->
94-
<dependency>
95-
<groupId>org.junit</groupId>
96-
<artifactId>junit-bom</artifactId>
97-
<version>${junit-jupiter.version}</version>
98-
<type>pom</type>
99-
<scope>import</scope>
100-
</dependency>
101-
102-
<!-- JUnit -->
103-
<dependency>
104-
<groupId>junit</groupId>
105-
<artifactId>junit</artifactId>
106-
<version>${junit.version}</version>
107-
</dependency>
108-
109109
</dependencies>
110110
</dependencyManagement>
111111

0 commit comments

Comments
 (0)