Skip to content

Commit a6c2145

Browse files
committed
remove junit4 from classpath
1 parent 2ccd867 commit a6c2145

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

buildSrc/src/main/kotlin/framefork.java.gradle.kts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,14 @@ tasks.withType<Javadoc> {
4141
tasks.named("test") {
4242
outputs.upToDateWhen { false }
4343
}
44+
45+
configurations.all {
46+
resolutionStrategy.dependencySubstitution {
47+
substitute(module("junit:junit"))
48+
.using(module("io.quarkus:quarkus-junit4-mock:3.0.0.Final"))
49+
.because(
50+
"We don't want JUnit 4; but is an unneeded transitive of testcontainers. " +
51+
"See https://github.com/testcontainers/testcontainers-java/issues/970"
52+
)
53+
}
54+
}

0 commit comments

Comments
 (0)