Skip to content

Commit b2134ee

Browse files
committed
Avoid Gradle build warnings about @⁠SuppressFBWarnings from FindBugs
In order to avoid Gradle build warnings about @⁠SuppressFBWarnings, this commit introduces a testCompileOnly dependency on `findbugs` in the spring-webmvc module so that the class file for @⁠SuppressFBWarnings is available to the compileTestJava task. Closes gh-34418
1 parent 440a259 commit b2134ee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: spring-webmvc/spring-webmvc.gradle

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ dependencies {
4040
optional("org.reactivestreams:reactive-streams")
4141
optional("org.webjars:webjars-locator-core")
4242
optional("org.webjars:webjars-locator-lite")
43+
testCompileOnly("com.google.code.findbugs:findbugs") { // for groovy-templates
44+
exclude group: "dom4j", module: "dom4j"
45+
}
4346
testImplementation(testFixtures(project(":spring-beans")))
4447
testImplementation(testFixtures(project(":spring-context")))
4548
testImplementation(testFixtures(project(":spring-core")))

0 commit comments

Comments
 (0)