From b2134ee71ff0fc8c6783d89457d378a953170c00 Mon Sep 17 00:00:00 2001 From: Sam Brannen <104798+sbrannen@users.noreply.github.com> Date: Wed, 12 Feb 2025 17:49:23 +0100 Subject: [PATCH] =?UTF-8?q?Avoid=20Gradle=20build=20warnings=20about=20@?= =?UTF-8?q?=E2=81=A0SuppressFBWarnings=20from=20FindBugs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- spring-webmvc/spring-webmvc.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-webmvc/spring-webmvc.gradle b/spring-webmvc/spring-webmvc.gradle index 906ca7cd979..4083584a37f 100644 --- a/spring-webmvc/spring-webmvc.gradle +++ b/spring-webmvc/spring-webmvc.gradle @@ -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")))