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
This commit is contained in:
Sam Brannen 2025-02-12 17:49:23 +01:00
parent 440a259b71
commit b2134ee71f
1 changed files with 3 additions and 0 deletions

View File

@ -40,6 +40,9 @@ dependencies {
optional("org.reactivestreams:reactive-streams")
optional("org.webjars:webjars-locator-core")
optional("org.webjars:webjars-locator-lite")
testCompileOnly("com.google.code.findbugs:findbugs") { // for groovy-templates
exclude group: "dom4j", module: "dom4j"
}
testImplementation(testFixtures(project(":spring-beans")))
testImplementation(testFixtures(project(":spring-context")))
testImplementation(testFixtures(project(":spring-core")))