Skip to content

Commit 46d35fd

Browse files
committed
chore: add missing junit-platform-launcher test runtime-only dependency
Previously, Gradle added the dependency behing the scenes, however it has been deprecated since 8. Now we should add the dependency explicitly. See junit-team/junit-framework#4335 (comment) Signed-off-by: Vladimir Sitnikov <[email protected]>
1 parent 8e049a4 commit 46d35fd

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

build-logic/jvm/src/main/kotlin/build-logic.test-junit5.gradle.kts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ plugins {
66
dependencies {
77
testImplementation("org.junit.jupiter:junit-jupiter-api")
88
testImplementation("org.junit.jupiter:junit-jupiter-params")
9+
testRuntimeOnly("org.junit.platform:junit-platform-launcher") {
10+
because("It is needed for junit in runtime, see https://github.com/junit-team/junit5/issues/4335#issuecomment-2676780444")
11+
}
912
testImplementation("org.assertj:assertj-core")
1013
}
1114

sigstore-java/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ dependencies {
4646

4747
testImplementation(project(":sigstore-testkit"))
4848
testImplementation(platform("org.junit:junit-bom:5.12.0"))
49-
testImplementation("org.junit.jupiter:junit-jupiter")
5049

5150
testImplementation(platform("org.mockito:mockito-bom:5.14.2"))
5251
testImplementation("org.mockito:mockito-core")

0 commit comments

Comments
 (0)