exclude indirect JUnit 4 compile-time dependency

This commit is contained in:
Michael Hoennig 2022-08-23 14:10:50 +02:00
parent a7f669a1f9
commit 3de8b00672
1 changed files with 6 additions and 0 deletions

View File

@ -21,6 +21,12 @@ configurations {
compileOnly {
extendsFrom annotationProcessor
}
testCompile {
// Only JUNit 5 (Jupiter) should be used at compile time.
// For runtime it's still needed by testcontainers, though.
exclude group: 'junit', module: 'junit'
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
repositories {