Skip to content

Commit 3befe92

Browse files
committed
update to junit jupiter 5.2.0
1 parent 438ba56 commit 3befe92

1 file changed

Lines changed: 22 additions & 68 deletions

File tree

parent_toplevel/pom.xml

Lines changed: 22 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<parent>
2626
<groupId>io.wcm.maven</groupId>
2727
<artifactId>io.wcm.maven.global-parent</artifactId>
28-
<version>19</version>
28+
<version>20-SNAPSHOT</version>
2929
<relativePath />
3030
</parent>
3131

@@ -88,14 +88,6 @@
8888
<site.url>http://devops.wcm.io</site.url>
8989
<site.deploy.id>ssh-wcm.io</site.deploy.id>
9090
<site.deploy.url />
91-
92-
<!-- junit5 versions -->
93-
<org.junit.jupiter.version>5.0.2</org.junit.jupiter.version>
94-
<org.junit.vintage.version>4.12.2</org.junit.vintage.version>
95-
<org.junit.platform.version>1.0.2</org.junit.platform.version>
96-
97-
<!-- we'll have to switch back to 2.19.1 because JUnit 5 provider is not yet compatbile with surefire 2.20/2.20.1 - see https://github.com/junit-team/junit5-samples/pull/27 -->
98-
<maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
9991

10092
</properties>
10193

@@ -112,23 +104,21 @@
112104
<artifactId>mockito-core</artifactId>
113105
<scope>test</scope>
114106
</dependency>
115-
<dependency>
116-
<groupId>org.junit.jupiter</groupId>
117-
<artifactId>junit-jupiter-api</artifactId>
118-
<scope>test</scope>
119-
</dependency>
120-
121-
<!-- Required to run tests in an IDE that bundles an older version - also required for Eclipse 4.7 -->
122-
<dependency>
123-
<groupId>org.junit.platform</groupId>
124-
<artifactId>junit-platform-launcher</artifactId>
125-
<scope>test</scope>
126-
</dependency>
127-
<dependency>
128-
<groupId>org.junit.jupiter</groupId>
129-
<artifactId>junit-jupiter-engine</artifactId>
130-
<scope>test</scope>
131-
</dependency>
107+
<dependency>
108+
<groupId>org.junit.jupiter</groupId>
109+
<artifactId>junit-jupiter-api</artifactId>
110+
<scope>test</scope>
111+
</dependency>
112+
<dependency>
113+
<groupId>org.junit.jupiter</groupId>
114+
<artifactId>junit-jupiter-params</artifactId>
115+
<scope>test</scope>
116+
</dependency>
117+
<dependency>
118+
<groupId>org.junit.jupiter</groupId>
119+
<artifactId>junit-jupiter-engine</artifactId>
120+
<scope>test</scope>
121+
</dependency>
132122

133123
</dependencies>
134124
<dependencyManagement>
@@ -167,30 +157,13 @@
167157
<artifactId>mockito-core</artifactId>
168158
<version>2.13.0</version>
169159
</dependency>
170-
171-
<dependency>
172-
<groupId>org.junit.jupiter</groupId>
173-
<artifactId>junit-jupiter-api</artifactId>
174-
<version>${org.junit.jupiter.version}</version>
175-
</dependency>
176-
177-
<!-- Required when the project contains JUnit 4 tests -->
178-
<dependency>
179-
<groupId>org.junit.vintage</groupId>
180-
<artifactId>junit-vintage-engine</artifactId>
181-
<version>${org.junit.vintage.version}</version>
182-
</dependency>
183-
184-
<!-- Required to run tests in an IDE that bundles an older version - also required for Eclipse 4.7 -->
185-
<dependency>
186-
<groupId>org.junit.platform</groupId>
187-
<artifactId>junit-platform-launcher</artifactId>
188-
<version>${org.junit.platform.version}</version>
189-
</dependency>
160+
<!-- Import all JUnit 5 dependencies -->
190161
<dependency>
191-
<groupId>org.junit.jupiter</groupId>
192-
<artifactId>junit-jupiter-engine</artifactId>
193-
<version>${org.junit.jupiter.version}</version>
162+
<groupId>org.junit</groupId>
163+
<artifactId>junit-bom</artifactId>
164+
<version>5.2.0</version>
165+
<type>pom</type>
166+
<scope>import</scope>
194167
</dependency>
195168

196169
</dependencies>
@@ -312,25 +285,6 @@
312285
</dependencies>
313286
</plugin>
314287

315-
<plugin>
316-
<groupId>org.apache.maven.plugins</groupId>
317-
<artifactId>maven-surefire-plugin</artifactId>
318-
319-
<!-- TODO: move this to global-parent once the surefire-junit5 integration is stable? -->
320-
<dependencies>
321-
<dependency>
322-
<groupId>org.junit.platform</groupId>
323-
<artifactId>junit-platform-surefire-provider</artifactId>
324-
<version>${org.junit.platform.version}</version>
325-
</dependency>
326-
<dependency>
327-
<groupId>org.junit.jupiter</groupId>
328-
<artifactId>junit-jupiter-engine</artifactId>
329-
<version>${org.junit.jupiter.version}</version>
330-
</dependency>
331-
</dependencies>
332-
</plugin>
333-
334288
</plugins>
335289

336290
</pluginManagement>

0 commit comments

Comments
 (0)