blob: 4a2429098ac63a8123cbbb89d2a96c614eea50a4 [file] [log] [blame]
nmittlerf8314582015-01-27 10:25:39 -08001description = 'gRPC: Core'
nmittler02c953e2015-01-26 14:03:11 -08002
nathanmittler164b7342014-12-15 09:58:05 -08003dependencies {
Bogdan Drutu482b6512017-07-11 10:13:23 -07004 compile project(':grpc-context'),
Carl Mastrangelo172b2d32017-12-19 12:33:27 -08005 libraries.gson,
Carl Mastrangelo26a08cd2016-08-18 18:57:50 -07006 libraries.errorprone,
Eric Gribkoff79b24702018-08-09 09:09:21 -07007 libraries.jsr305,
8 libraries.animalsniffer_annotations
Jesse Wilson8b168992018-09-20 14:43:54 -04009 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 }
Eric Andersona3ff9cd2017-09-18 16:20:18 -070017 compile (libraries.opencensus_api) {
Jesse Wilson8b168992018-09-20 14:43:54 -040018 // prefer 3.0.2 from libraries instead of 3.0.1
Kun Zhang7e534ed2017-09-19 09:22:11 -070019 exclude group: 'com.google.code.findbugs', module: 'jsr305'
Eric Anderson5f0ee3a2018-03-23 15:45:05 -070020 // prefer 20.0 from libraries instead of 19.0
21 exclude group: 'com.google.guava', module: 'guava'
Eric Andersona3ff9cd2017-09-18 16:20:18 -070022 // we'll always be more up-to-date
23 exclude group: 'io.grpc', module: 'grpc-context'
24 }
sebrightef2ec942017-11-07 12:25:03 -080025 compile (libraries.opencensus_contrib_grpc_metrics) {
Jesse Wilson8b168992018-09-20 14:43:54 -040026 // prefer 3.0.2 from libraries instead of 3.0.1
sebrightef2ec942017-11-07 12:25:03 -080027 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'
Eric Anderson5f0ee3a2018-03-23 15:45:05 -070030 // prefer 20.0 from libraries instead of 19.0
31 exclude group: 'com.google.guava', module: 'guava'
sebrightef2ec942017-11-07 12:25:03 -080032 }
Bogdan Drutu482b6512017-07-11 10:13:23 -070033
Eric Anderson2bde25d2017-11-21 13:20:54 -080034 testCompile project(':grpc-context').sourceSets.test.output,
Carl Mastrangelo81da3eb2018-06-26 13:36:02 -070035 project(':grpc-testing'),
Eric Anderson9d6241e2018-07-02 10:47:40 -070036 project(':grpc-grpclb'),
37 libraries.guava_testlib
Bogdan Drutu482b6512017-07-11 10:13:23 -070038
Eric Gribkoff79b24702018-08-09 09:09:21 -070039 signature "org.codehaus.mojo.signature:java17:1.0@signature"
40 signature "net.sf.androidscents.signature:android-api-level-14:4.0_r4@signature"
nmittler02c953e2015-01-26 14:03:11 -080041}
Kun Zhang687a6f42015-08-17 16:27:03 -070042
Eric Andersoncb53bbf2017-06-16 14:53:51 -070043javadoc {
44 // We want io.grpc.Internal, but not io.grpc.Internal*
45 exclude 'io/grpc/Internal?*.java'
46 exclude 'io/grpc/internal/**'
47}
Eric Anderson6164b7b2017-08-26 17:10:18 -070048
49animalsniffer {
50 // Don't check sourceSets.jmh
ZHANG Dapeng5ce10f02018-06-11 18:35:18 -070051 sourceSets = [
52 sourceSets.main,
53 sourceSets.test
54 ]
Eric Anderson6164b7b2017-08-26 17:10:18 -070055}