Declare 'com.google.code.findbugs:jsr305' as a 'compileOnly' dependency to avoid Gradle build warnings on missing enumerated types.

This commit is contained in:
John Blum
2020-11-17 20:07:39 -08:00
parent 2f3fd4ac28
commit e1e790c21d
2 changed files with 7 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ org.gradle.jvmargs=-Xmx2g -Dfile.encoding=UTF-8
antlrVersion=2.7.7
apacheGeodeVersion=1.13.0
apacheTaglibsStandardVersion=1.2.5
findbugsVersion=3.0.2
# Spring Boot 2.3 sets Apache Groovy version to 2.5.11
# https://github.com/spring-projects/spring-boot/blob/v2.3.0.RELEASE/spring-boot-project/spring-boot-dependencies/build.gradle#L365
#groovyVersion=2.4.19

View File

@@ -14,6 +14,8 @@ dependencies {
compile "org.springframework.data:spring-data-geode"
compile "org.springframework.session:spring-session-core:$springSessionVersion"
compileOnly "com.google.code.findbugs:jsr305:$findbugsVersion"
optional "org.springframework.security:spring-security-core"
optional "org.springframework.security:spring-security-web"
@@ -34,9 +36,13 @@ dependencies {
testCompile "org.springframework.data:spring-data-geode-test"
testCompile slf4jDependencies
testCompileOnly "com.google.code.findbugs:jsr305:$findbugsVersion"
testRuntime "ch.qos.logback:logback-classic"
testRuntime "org.apache.logging.log4j:log4j-to-slf4j"
integrationTestCompileOnly "com.google.code.findbugs:jsr305:$findbugsVersion"
integrationTestRuntime "org.springframework.shell:spring-shell"
}