Skip to content

Commit

Permalink
Avoid Gradle build warnings about @⁠SuppressFBWarnings from FindBugs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sbrannen committed Feb 12, 2025
1 parent 440a259 commit b2134ee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spring-webmvc/spring-webmvc.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")))
Expand Down

0 comments on commit b2134ee

Please sign in to comment.