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

View File

@ -21,6 +21,12 @@ configurations {
compileOnly { compileOnly {
extendsFrom annotationProcessor 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 { repositories {