Merge pull request #9409 from dupirefr/team/JAVA-1659-junit_and_surefire_upgrade-ddd_modules

[JAVA-1659] Upgraded Maven Surefire Plugin and JUnit versions
This commit is contained in:
Dhawal Kapil 2020-06-06 11:01:11 +05:30 committed by GitHub
commit 4e5cc32798
7 changed files with 72 additions and 31 deletions

View File

@ -12,8 +12,9 @@
<parent> <parent>
<groupId>com.baeldung.dddmodules</groupId> <groupId>com.baeldung.dddmodules</groupId>
<artifactId>dddmodules</artifactId> <artifactId>ddd-modules</artifactId>
<version>1.0</version> <version>1.0</version>
<relativePath>../</relativePath>
</parent> </parent>
<dependencies> <dependencies>

View File

@ -11,8 +11,9 @@
<parent> <parent>
<groupId>com.baeldung.dddmodules</groupId> <groupId>com.baeldung.dddmodules</groupId>
<artifactId>dddmodules</artifactId> <artifactId>ddd-modules</artifactId>
<version>1.0</version> <version>1.0</version>
<relativePath>../</relativePath>
</parent> </parent>
<dependencies> <dependencies>

View File

@ -11,8 +11,9 @@
<parent> <parent>
<groupId>com.baeldung.dddmodules</groupId> <groupId>com.baeldung.dddmodules</groupId>
<artifactId>dddmodules</artifactId> <artifactId>ddd-modules</artifactId>
<version>1.0</version> <version>1.0</version>
<relativePath>../</relativePath>
</parent> </parent>
<dependencies> <dependencies>

View File

@ -28,9 +28,15 @@
<dependencyManagement> <dependencyManagement>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>junit</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit</artifactId> <artifactId>junit-jupiter</artifactId>
<version>${junit.version}</version> <version>${junit-jupiter.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
<version>${junit-jupiter.version}</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
@ -56,15 +62,31 @@
</plugin> </plugin>
</plugins> </plugins>
</pluginManagement> </pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<forkCount>0</forkCount>
</configuration>
</plugin>
</plugins>
</build> </build>
<properties> <properties>
<compiler.plugin.version>3.8.1</compiler.plugin.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<source.version>9</source.version> <source.version>9</source.version>
<target.version>9</target.version> <target.version>9</target.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<assertj-core.version>3.12.2</assertj-core.version> <compiler.plugin.version>3.8.1</compiler.plugin.version>
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
<appmodules.version>1.0</appmodules.version> <appmodules.version>1.0</appmodules.version>
<junit-jupiter.version>5.6.2</junit-jupiter.version>
<assertj-core.version>3.12.2</assertj-core.version>
</properties> </properties>
</project> </project>

View File

@ -11,8 +11,9 @@
<parent> <parent>
<groupId>com.baeldung.dddmodules</groupId> <groupId>com.baeldung.dddmodules</groupId>
<artifactId>dddmodules</artifactId> <artifactId>ddd-modules</artifactId>
<version>1.0</version> <version>1.0</version>
<relativePath>../</relativePath>
</parent> </parent>
<build> <build>

View File

@ -11,8 +11,9 @@
<parent> <parent>
<groupId>com.baeldung.dddmodules</groupId> <groupId>com.baeldung.dddmodules</groupId>
<artifactId>dddmodules</artifactId> <artifactId>ddd-modules</artifactId>
<version>1.0</version> <version>1.0</version>
<relativePath>../</relativePath>
</parent> </parent>
<dependencies> <dependencies>

View File

@ -17,6 +17,35 @@
<relativePath>../parent-boot-2</relativePath> <relativePath>../parent-boot-2</relativePath>
</parent> </parent>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
</plugin>
</plugins>
</build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${junit-jupiter.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
@ -26,24 +55,6 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-cassandra</artifactId> <artifactId>spring-boot-starter-data-cassandra</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<scope>test</scope>
</dependency>
<!-- JUnit platform launcher -->
<!-- To be able to run tests from IDE directly -->
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>${junit-platform.version}</version>
<scope>test</scope>
</dependency>
<dependency> <dependency>
<groupId>org.joda</groupId> <groupId>org.joda</groupId>
<artifactId>joda-money</artifactId> <artifactId>joda-money</artifactId>
@ -95,7 +106,10 @@
</dependencies> </dependencies>
<properties> <properties>
<joda-money.version>1.0.1</joda-money.version> <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
</properties>
<joda-money.version>1.0.1</joda-money.version>
<junit-jupiter.version>5.6.2</junit-jupiter.version>
</properties>
</project> </project>