| plugins { |
| id "java" |
| id "maven-publish" |
| |
| id "me.champeau.gradle.japicmp" |
| id "me.champeau.gradle.jmh" |
| id "ru.vyarus.animalsniffer" |
| } |
| |
| description = 'gRPC: Core' |
| |
| evaluationDependsOn(project(':grpc-context').path) |
| evaluationDependsOn(project(':grpc-api').path) |
| |
| dependencies { |
| compile project(':grpc-api'), |
| libraries.gson, |
| libraries.android_annotations, |
| libraries.perfmark |
| compile (libraries.opencensus_api) { |
| // prefer 3.0.2 from libraries instead of 3.0.1 |
| exclude group: 'com.google.code.findbugs', module: 'jsr305' |
| // prefer 20.0 from libraries instead of 19.0 |
| exclude group: 'com.google.guava', module: 'guava' |
| // we'll always be more up-to-date |
| exclude group: 'io.grpc', module: 'grpc-context' |
| } |
| compile (libraries.opencensus_contrib_grpc_metrics) { |
| // prefer 3.0.2 from libraries instead of 3.0.1 |
| exclude group: 'com.google.code.findbugs', module: 'jsr305' |
| // we'll always be more up-to-date |
| exclude group: 'io.grpc', module: 'grpc-context' |
| // prefer 20.0 from libraries instead of 19.0 |
| exclude group: 'com.google.guava', module: 'guava' |
| } |
| |
| testCompile project(':grpc-context').sourceSets.test.output, |
| project(':grpc-api').sourceSets.test.output, |
| project(':grpc-testing'), |
| project(':grpc-grpclb'), |
| libraries.guava_testlib, |
| libraries.opencensus_impl |
| |
| jmh project(':grpc-testing') |
| |
| signature "org.codehaus.mojo.signature:java17:1.0@signature" |
| signature "net.sf.androidscents.signature:android-api-level-14:4.0_r4@signature" |
| } |
| |
| javadoc { |
| exclude 'io/grpc/internal/**' |
| // Disabled until kinda stable. |
| exclude 'io/grpc/perfmark/**' |
| } |
| |
| animalsniffer { |
| // Don't check sourceSets.jmh |
| sourceSets = [ |
| sourceSets.main, |
| sourceSets.test |
| ] |
| } |