Skip to content

Commit 261aea6

Browse files
Cleanup classpath to resolve JUnit5 versions conflict.
1 parent e4a8703 commit 261aea6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

gradle/spotbugs.gradle

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,11 @@ tasks.matching { it.name.startsWith('spotbugs') }.configureEach {
5959
}
6060

6161
dependencies {
62-
compileOnly libs.spotbugs.annotations
62+
compileOnly(libs.spotbugs.annotations)
63+
testImplementation(libs.spotbugs.annotations) {
64+
// Exclude conflicting JUnit5 version from latest spotbugs.
65+
exclude group: 'org.junit'
66+
exclude group: 'org.junit.jupiter'
67+
exclude group: 'org.junit.platform'
68+
}
6369
}

0 commit comments

Comments
 (0)