Skip to content

Commit e50ae1d

Browse files
authored
Simplify dependency management for JUnit Jupiter (#4704)
By using the junit-jupiter aggregator artifact.
1 parent 5fe437f commit e50ae1d

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

docs/quickstart/junit_5_quickstart.md

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,16 @@ Let's start from here, and see how to improve the test with Testcontainers:
2222
First, add Testcontainers as a dependency as follows:
2323

2424
```groovy tab='Gradle'
25-
def junitJupiterVersion = '5.4.2'
26-
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
27-
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitJupiterVersion"
28-
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion"
25+
testImplementation "org.junit.jupiter:junit-jupiter:5.8.1"
2926
testImplementation "org.testcontainers:testcontainers:{{latest_version}}"
3027
testImplementation "org.testcontainers:junit-jupiter:{{latest_version}}"
3128
```
3229

3330
```xml tab='Maven'
3431
<dependency>
3532
<groupId>org.junit.jupiter</groupId>
36-
<artifactId>junit-jupiter-api</artifactId>
37-
<version>5.4.2</version>
38-
<scope>test</scope>
39-
</dependency>
40-
<dependency>
41-
<groupId>org.junit.jupiter</groupId>
42-
<artifactId>junit-jupiter-params</artifactId>
43-
<version>5.4.2</version>
44-
<scope>test</scope>
45-
</dependency>
46-
<dependency>
47-
<groupId>org.junit.jupiter</groupId>
48-
<artifactId>junit-jupiter-engine</artifactId>
49-
<version>5.4.2</version>
33+
<artifactId>junit-jupiter</artifactId>
34+
<version>5.8.1</version>
5035
<scope>test</scope>
5136
</dependency>
5237
<dependency>

0 commit comments

Comments
 (0)