Skip to content

Commit 3370605

Browse files
committed
Use junit-bom
1 parent be67791 commit 3370605

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

pom.xml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,22 @@
7575
<sonar.coverage.jacoco.xmlReportPaths>
7676
${project.basedir}/coverage/target/site/jacoco-aggregate/jacoco.xml
7777
</sonar.coverage.jacoco.xmlReportPaths>
78-
<jupiter-version>5.13.0-M2</jupiter-version>
7978
</properties>
8079

8180
<dependencies>
8281
<dependency>
8382
<groupId>org.junit.jupiter</groupId>
8483
<artifactId>junit-jupiter-api</artifactId>
85-
<version>${jupiter-version}</version>
8684
<scope>test</scope>
8785
</dependency>
8886
<dependency>
8987
<groupId>org.junit.jupiter</groupId>
9088
<artifactId>junit-jupiter-params</artifactId>
91-
<version>${jupiter-version}</version>
89+
<scope>test</scope>
90+
</dependency>
91+
<dependency>
92+
<groupId>org.junit.platform</groupId>
93+
<artifactId>junit-platform-reporting</artifactId>
9294
<scope>test</scope>
9395
</dependency>
9496
<dependency>
@@ -99,6 +101,18 @@
99101
</dependency>
100102
</dependencies>
101103

104+
<dependencyManagement>
105+
<dependencies>
106+
<dependency>
107+
<groupId>org.junit</groupId>
108+
<artifactId>junit-bom</artifactId>
109+
<version>5.12.2</version>
110+
<type>pom</type>
111+
<scope>import</scope>
112+
</dependency>
113+
</dependencies>
114+
</dependencyManagement>
115+
102116
<build>
103117
<!-- Restore the default maven final artifact name. -->
104118
<finalName>${project.artifactId}-${project.version}</finalName>
@@ -130,14 +144,20 @@
130144
<plugin>
131145
<groupId>org.apache.maven.plugins</groupId>
132146
<artifactId>maven-surefire-plugin</artifactId>
133-
<version>3.3.1</version>
147+
<version>3.5.2</version>
134148
<configuration>
135149
<!-- Sets the VM argument line used when unit tests are run. -->
136150
<!-- Suppress UnresolvedMavenProperty. -->
137151
<argLine>-Xms1g -Xmx2g @{surefireArgLine}</argLine>
138152
<useSystemClassLoader>false</useSystemClassLoader>
139153
<forkedProcessExitTimeoutInSeconds>180</forkedProcessExitTimeoutInSeconds>
140154
<forkCount>1</forkCount>
155+
<properties>
156+
<configurationParameters>
157+
junit.platform.reporting.open.xml.enabled = true
158+
junit.platform.reporting.output.dir = target/surefire-reports
159+
</configurationParameters>
160+
</properties>
141161
</configuration>
142162
</plugin>
143163
<plugin>

0 commit comments

Comments
 (0)