Declare 'com.google.code.findbugs:jsr305' as a compileOnly/testCompileOnly depedency to cleanup Gradle build warnings.

Without this dependency the Gradle build logs warnings about:

> Task :spring-geode-autoconfigure:compileTestJava
warning: unknown enum constant When.MAYBE
  reason: class file for javax.annotation.meta.When not found
...
This commit is contained in:
John Blum
2020-07-23 13:45:27 -07:00
parent 6fc18bc449
commit 5ca11cbc44
5 changed files with 11 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ org.gradle.jvmargs=-Xmx2g -Dfile.encoding=UTF-8
antlrVersion=2.7.7
apacheGeodeVersion=1.12.0
byteBuddyVersion=1.10.11
findbugsVersion=3.0.2
mockitoVersion=3.3.3
multithreadedtcVersion=1.01
pivotalGemFireVersion=9.10.0

View File

@@ -8,6 +8,8 @@ dependencies {
compile project(":spring-geode-actuator")
compile project(":spring-geode-autoconfigure")
compileOnly "com.google.code.findbugs:jsr305:$findbugsVersion"
testCompile "junit:junit"
testCompile "org.assertj:assertj-core"
testCompile "org.mockito:mockito-core"

View File

@@ -11,6 +11,8 @@ dependencies {
compile project(":spring-geode")
compileOnly "com.google.code.findbugs:jsr305:$findbugsVersion"
optional project(':apache-geode-extensions')
optional "org.springframework.boot:spring-boot-autoconfigure-processor"
@@ -34,6 +36,8 @@ dependencies {
exclude group: "org.apache.logging.log4j", module: "log4j-core"
}
testCompileOnly "com.google.code.findbugs:jsr305:$findbugsVersion"
testRuntime "javax.cache:cache-api"
testRuntime "org.apache.geode:geode-http-service:$apacheGeodeVersion"
testRuntime "org.apache.geode:geode-web:$apacheGeodeVersion"

View File

@@ -18,6 +18,8 @@ dependencies {
testCompile "org.springframework.boot:spring-boot-starter-test"
testCompileOnly "com.google.code.findbugs:jsr305:$findbugsVersion"
}
processResources {

View File

@@ -20,6 +20,8 @@ dependencies {
exclude group: "org.apache.logging.log4j", module: "log4j-core"
}
compileOnly "com.google.code.findbugs:jsr305:$findbugsVersion"
optional "org.springframework:spring-test"
testCompile "junit:junit"