Skip to content

Commit

Permalink
Move jsr305 annotation dependency into a compileOnly scope
Browse files Browse the repository at this point in the history
  • Loading branch information
mokies committed Nov 23, 2019
1 parent da209bd commit 2303744
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ subprojects {
mockito : 'org.mockito:mockito-core:3.1.0',
guava : 'com.google.guava:guava:28.1-jre',
logback : 'ch.qos.logback:logback-classic:1.2.3',
findbugs: 'com.google.code.findbugs:jsr305:3.0.2'
jsr305: 'com.google.code.findbugs:jsr305:3.0.2'
]

test {
Expand Down
5 changes: 4 additions & 1 deletion ratelimitj-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ dependencies {

implementation(
libraries.slf4j,
libraries.findbugs
)

compileOnly(
libraries.jsr305,
)

testImplementation(
Expand Down
5 changes: 4 additions & 1 deletion ratelimitj-hazelcast/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ dependencies {
implementation(
project(':ratelimitj-inmemory'),
libraries.slf4j,
libraries.findbugs
)

compileOnly(
libraries.jsr305,
)

testImplementation(
Expand Down
5 changes: 4 additions & 1 deletion ratelimitj-inmemory/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ dependencies {
libraries.slf4j,
'net.jodah:expiringmap:0.5.8',
'de.jkeylockmanager:jkeylockmanager:2.1.0',
libraries.findbugs
)

compileOnly(
libraries.jsr305,
)

testImplementation(
Expand Down
5 changes: 4 additions & 1 deletion ratelimitj-redis/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ dependencies {

implementation(
'com.eclipsesource.minimal-json:minimal-json:0.9.4',
libraries.findbugs,
libraries.slf4j
)

compileOnly(
libraries.jsr305,
)

testImplementation(
project(':ratelimitj-test'),
libraries.assertj,
Expand Down

0 comments on commit 2303744

Please sign in to comment.