diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9bbe8e593c..2bdcd5b648 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -16,6 +16,7 @@ updates: update-types: ["patch"] patterns: - "com.gradle.enterprise" + - "com.github.spotbugs" - "io.spring.*" - "org.ajoberstar.grgit" - "org.antora" diff --git a/build.gradle b/build.gradle index c0dcef8261..a29a844e36 100644 --- a/build.gradle +++ b/build.gradle @@ -256,7 +256,9 @@ configure(javaProjects) { subproject -> api project(':spring-integration-core') } - compileOnly "com.github.spotbugs:spotbugs-annotations:${spotbugs.toolVersion.get()}" + def spotbugsAnnotations = "com.github.spotbugs:spotbugs-annotations:${spotbugs.toolVersion.get()}" + compileOnly spotbugsAnnotations + testCompileOnly spotbugsAnnotations testImplementation("org.awaitility:awaitility:$awaitilityVersion") { exclude group: 'org.hamcrest'