Skip to content

Commit bdebcac

Browse files
author
dupirefr
committed
[JAVA-1659] Upgraded Maven Surefire Plugin and JUnit versions
* Upgraded Maven Surefire Plugin version to 2.22.2 * Upgraded JUnit version to 5.6.2 * Imported JUnit BOM before Spring Boot Dependencies BOM (as explained [here](https://docs.spring.io/spring-boot/docs/2.3.0.RELEASE/maven-plugin/reference/html/#using))
1 parent 5e6a060 commit bdebcac

1 file changed

Lines changed: 33 additions & 19 deletions

File tree

ddd/pom.xml

Lines changed: 33 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,35 @@
1717
<relativePath>../parent-boot-2</relativePath>
1818
</parent>
1919

20+
<build>
21+
<plugins>
22+
<plugin>
23+
<groupId>org.apache.maven.plugins</groupId>
24+
<artifactId>maven-surefire-plugin</artifactId>
25+
<version>${maven-surefire-plugin.version}</version>
26+
</plugin>
27+
</plugins>
28+
</build>
29+
30+
<dependencyManagement>
31+
<dependencies>
32+
<dependency>
33+
<groupId>org.junit</groupId>
34+
<artifactId>junit-bom</artifactId>
35+
<version>${junit-jupiter.version}</version>
36+
<type>pom</type>
37+
<scope>import</scope>
38+
</dependency>
39+
<dependency>
40+
<groupId>org.springframework.boot</groupId>
41+
<artifactId>spring-boot-dependencies</artifactId>
42+
<version>${spring-boot.version}</version>
43+
<type>pom</type>
44+
<scope>import</scope>
45+
</dependency>
46+
</dependencies>
47+
</dependencyManagement>
48+
2049
<dependencies>
2150
<dependency>
2251
<groupId>org.springframework.boot</groupId>
@@ -26,24 +55,6 @@
2655
<groupId>org.springframework.boot</groupId>
2756
<artifactId>spring-boot-starter-data-cassandra</artifactId>
2857
</dependency>
29-
<dependency>
30-
<groupId>org.junit.jupiter</groupId>
31-
<artifactId>junit-jupiter-api</artifactId>
32-
<scope>test</scope>
33-
</dependency>
34-
<dependency>
35-
<groupId>org.junit.jupiter</groupId>
36-
<artifactId>junit-jupiter-engine</artifactId>
37-
<scope>test</scope>
38-
</dependency>
39-
<!-- JUnit platform launcher -->
40-
<!-- To be able to run tests from IDE directly -->
41-
<dependency>
42-
<groupId>org.junit.platform</groupId>
43-
<artifactId>junit-platform-launcher</artifactId>
44-
<version>${junit-platform.version}</version>
45-
<scope>test</scope>
46-
</dependency>
4758
<dependency>
4859
<groupId>org.joda</groupId>
4960
<artifactId>joda-money</artifactId>
@@ -95,7 +106,10 @@
95106
</dependencies>
96107

97108
<properties>
109+
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
110+
98111
<joda-money.version>1.0.1</joda-money.version>
99-
</properties>
100112

113+
<junit-jupiter.version>5.6.2</junit-jupiter.version>
114+
</properties>
101115
</project>

0 commit comments

Comments
 (0)