Skip to content

Commit b9f0a9d

Browse files
committed
JUnit: upgrade to v5.11.0
1 parent f5e6a8a commit b9f0a9d

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

build.gradle

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,20 @@ processResources {
1616
}
1717

1818
dependencies {
19-
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.0-M2'
20-
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.11.0-M2'
19+
// cf. https://docs.gradle.org/current/userguide/platforms.html#sub:bom_import
20+
testImplementation platform('org.junit:junit-bom:5.11.0')
21+
22+
// cf. https://docs.gradle.org/current/userguide/java_testing.html#using_junit5
23+
testImplementation 'org.junit.jupiter:junit-jupiter'
24+
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
2125
}
2226

2327
application {
2428
// Define the main class for the application
2529
mainClass = 'CBuilder.ManualTest'
2630
}
2731

28-
tasks.named('test') {
32+
tasks.named('test', Test) {
33+
// cf. https://docs.gradle.org/current/userguide/java_testing.html#using_junit5
2934
useJUnitPlatform()
3035
}

0 commit comments

Comments
 (0)