1description = 'gRPC: Core' 2 3dependencies { 4 compile project(':grpc-context'), 5 libraries.gson, 6 libraries.errorprone, 7 libraries.jsr305, 8 libraries.animalsniffer_annotations 9 compile (libraries.guava) { 10 // prefer 2.2.0 from libraries instead of 2.1.3 11 exclude group: 'com.google.errorprone', module: 'error_prone_annotations' 12 // prefer 3.0.2 from libraries instead of 3.0.1 13 exclude group: 'com.google.code.findbugs', module: 'jsr305' 14 // prefer 1.17 from libraries instead of 1.14 15 exclude group: 'org.codehaus.mojo', module: 'animal-sniffer-annotations' 16 } 17 compile (libraries.opencensus_api) { 18 // prefer 3.0.2 from libraries instead of 3.0.1 19 exclude group: 'com.google.code.findbugs', module: 'jsr305' 20 // prefer 20.0 from libraries instead of 19.0 21 exclude group: 'com.google.guava', module: 'guava' 22 // we'll always be more up-to-date 23 exclude group: 'io.grpc', module: 'grpc-context' 24 } 25 compile (libraries.opencensus_contrib_grpc_metrics) { 26 // prefer 3.0.2 from libraries instead of 3.0.1 27 exclude group: 'com.google.code.findbugs', module: 'jsr305' 28 // we'll always be more up-to-date 29 exclude group: 'io.grpc', module: 'grpc-context' 30 // prefer 20.0 from libraries instead of 19.0 31 exclude group: 'com.google.guava', module: 'guava' 32 } 33 34 testCompile project(':grpc-context').sourceSets.test.output, 35 project(':grpc-testing'), 36 project(':grpc-grpclb'), 37 libraries.guava_testlib 38 39 signature "org.codehaus.mojo.signature:java17:1.0@signature" 40 signature "net.sf.androidscents.signature:android-api-level-14:4.0_r4@signature" 41} 42 43javadoc { 44 // We want io.grpc.Internal, but not io.grpc.Internal* 45 exclude 'io/grpc/Internal?*.java' 46 exclude 'io/grpc/internal/**' 47} 48 49animalsniffer { 50 // Don't check sourceSets.jmh 51 sourceSets = [ 52 sourceSets.main, 53 sourceSets.test 54 ] 55} 56