Skip to content

Commit

Permalink
deps: exclude unused transied dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli committed Dec 14, 2021
1 parent 6c3c037 commit 61ad70b
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 8 deletions.
2 changes: 0 additions & 2 deletions jetcd-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@

dependencies {
api libs.slf4j
api libs.guava
api libs.grpcCore
}
22 changes: 20 additions & 2 deletions jetcd-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,26 @@

dependencies {
api libs.slf4j
api libs.guava
api libs.grpcCore

api(libs.guava) {
exclude group: 'com.google.code.findbugs', module: 'jsr305'
exclude group: 'com.google.j2objc', module: 'j2objc-annotations'
exclude group: 'com.google.errorprone', module: 'error_prone_annotations'
exclude group: 'org.checkerframework', module: 'checker-compat-qual'
exclude group: 'org.checkerframework', module: 'checker-qual'
}

api(libs.grpcCore) {
exclude group: 'com.google.code.gson', module: 'gson'
exclude group: 'com.google.android', module: 'annotations'
exclude group: 'com.google.guava', module: 'guava'
exclude group: 'com.google.j2objc', module: 'j2objc-annotations'
exclude group: 'org.codehaus.mojo', module: 'animal-sniffer-annotations'
exclude group: 'com.google.errorprone', module: 'error_prone_annotations'
exclude group: 'com.google.code.findbugs', module: 'jsr305'
exclude group: 'io.perfmark', module: 'perfmark-api'
exclude group: 'org.checkerframework', module: 'checker-compat-qual'
}

testImplementation libs.bundles.testing
testRuntimeOnly libs.bundles.log4j
Expand Down
3 changes: 1 addition & 2 deletions jetcd-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,15 @@ dependencies {
api project(':jetcd-common')

api libs.slf4j
api libs.guava
api libs.javaxAnnotation
api libs.bundles.grpc
api libs.spotbugs
api libs.failsafe

api libs.autoServiceAnnotations
annotationProcessor libs.autoServiceProcessor

testImplementation project(':jetcd-launcher')

testImplementation project(':jetcd-test')

testImplementation libs.awaitility
Expand Down
27 changes: 25 additions & 2 deletions jetcd-grpc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,36 @@ plugins {

dependencies {
api libs.slf4j
api libs.bundles.grpc
api libs.javaxAnnotation

api(libs.guava) {
exclude group: 'com.google.code.findbugs', module: 'jsr305'
exclude group: 'com.google.j2objc', module: 'j2objc-annotations'
exclude group: 'com.google.errorprone', module: 'error_prone_annotations'
exclude group: 'org.checkerframework', module: 'checker-compat-qual'
exclude group: 'org.checkerframework', module: 'checker-qual'
}

api(libs.bundles.grpc) {
exclude group: 'com.google.code.gson', module: 'gson'
exclude group: 'com.google.android', module: 'annotations'
exclude group: 'com.google.guava', module: 'guava'
exclude group: 'com.google.j2objc', module: 'j2objc-annotations'
exclude group: 'org.codehaus.mojo', module: 'animal-sniffer-annotations'
exclude group: 'com.google.errorprone', module: 'error_prone_annotations'
exclude group: 'com.google.code.findbugs', module: 'jsr305'
exclude group: 'io.perfmark', module: 'perfmark-api'
exclude group: 'org.checkerframework', module: 'checker-compat-qual'
}
}

protobuf {
protoc {
artifact = "com.google.protobuf:protoc:${protocVersion}"
if (osdetector.os == "osx") {
artifact = "com.google.protobuf:protoc:${protocVersion}:osx-x86_64"
} else {
artifact = "com.google.protobuf:protoc:${protocVersion}"
}
}
plugins {
grpc {
Expand Down

0 comments on commit 61ad70b

Please sign in to comment.