Skip to content

Commit c98e602

Browse files
Using junit-bom for Gradle
1 parent 17b3c85 commit c98e602

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

junit4-and-5-maven-sample/pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@
3636
<scope>test</scope>
3737
</dependency>
3838
<dependency>
39-
<groupId>junit</groupId>
40-
<artifactId>junit</artifactId>
41-
<version>${junit4.version}</version>
39+
<groupId>org.junit.vintage</groupId>
40+
<artifactId>junit-vintage-engine</artifactId>
4241
<scope>test</scope>
4342
</dependency>
4443
<dependency>
45-
<groupId>org.junit.vintage</groupId>
46-
<artifactId>junit-vintage-engine</artifactId>
44+
<groupId>junit</groupId>
45+
<artifactId>junit</artifactId>
46+
<version>${junit4.version}</version>
4747
<scope>test</scope>
4848
</dependency>
4949
</dependencies>

junit5-gradle-sample/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ repositories {
1717
}
1818

1919
dependencies {
20-
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
20+
testImplementation(platform('org.junit:junit-bom:5.9.2'))
21+
testImplementation 'org.junit.jupiter:junit-jupiter'
2122
}
2223

2324
tasks.named('test') {

0 commit comments

Comments
 (0)