Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 148a93e

Browse files
committed
Added dependencies to supress compile time warnings for JSR-305 annotations
1 parent 276acd1 commit 148a93e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@ project('spring-batch-core') {
288288
optional "org.springframework:spring-jdbc:$springVersion"
289289
optional "org.apache.logging.log4j:log4j-api:$log4jVersion"
290290
optional "org.apache.logging.log4j:log4j-core:$log4jVersion"
291+
// JSR-305 only used for non-required meta-annotations
292+
compileOnly("com.google.code.findbugs:jsr305:3.0.2")
293+
testCompileOnly("com.google.code.findbugs:jsr305:3.0.2")
291294
}
292295
}
293296

@@ -374,6 +377,7 @@ project('spring-batch-infrastructure') {
374377
optional "org.springframework.ldap:spring-ldap-core-tiger:$springLdapVersion"
375378
optional "org.springframework.ldap:spring-ldap-ldif-core:$springLdapVersion"
376379
// JSR-305 only used for non-required meta-annotations
380+
compileOnly("com.google.code.findbugs:jsr305:3.0.2")
377381
testCompileOnly("com.google.code.findbugs:jsr305:3.0.2")
378382
}
379383

0 commit comments

Comments
 (0)