blob: 700592f86f3a34758deedf957513daa1e6bc3a6c [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,
Bogdan Drutu482b6512017-07-11 10:13:23 -07006 libraries.guava,
Carl Mastrangelo26a08cd2016-08-18 18:57:50 -07007 libraries.errorprone,
Eric Gribkoff79b24702018-08-09 09:09:21 -07008 libraries.jsr305,
9 libraries.animalsniffer_annotations
Eric Andersona3ff9cd2017-09-18 16:20:18 -070010 compile (libraries.opencensus_api) {
Kun Zhang7e534ed2017-09-19 09:22:11 -070011 // prefer 3.0.0 from libraries instead of 3.0.1
12 exclude group: 'com.google.code.findbugs', module: 'jsr305'
Eric Anderson5f0ee3a2018-03-23 15:45:05 -070013 // prefer 20.0 from libraries instead of 19.0
14 exclude group: 'com.google.guava', module: 'guava'
Eric Andersona3ff9cd2017-09-18 16:20:18 -070015 // we'll always be more up-to-date
16 exclude group: 'io.grpc', module: 'grpc-context'
17 }
sebrightef2ec942017-11-07 12:25:03 -080018 compile (libraries.opencensus_contrib_grpc_metrics) {
19 // prefer 3.0.0 from libraries instead of 3.0.1
20 exclude group: 'com.google.code.findbugs', module: 'jsr305'
21 // we'll always be more up-to-date
22 exclude group: 'io.grpc', module: 'grpc-context'
Eric Anderson5f0ee3a2018-03-23 15:45:05 -070023 // prefer 20.0 from libraries instead of 19.0
24 exclude group: 'com.google.guava', module: 'guava'
sebrightef2ec942017-11-07 12:25:03 -080025 }
Bogdan Drutu482b6512017-07-11 10:13:23 -070026
Eric Anderson2bde25d2017-11-21 13:20:54 -080027 testCompile project(':grpc-context').sourceSets.test.output,
Carl Mastrangelo81da3eb2018-06-26 13:36:02 -070028 project(':grpc-testing'),
Eric Anderson9d6241e2018-07-02 10:47:40 -070029 project(':grpc-grpclb'),
30 libraries.guava_testlib
Bogdan Drutu482b6512017-07-11 10:13:23 -070031
Eric Gribkoff79b24702018-08-09 09:09:21 -070032 signature "org.codehaus.mojo.signature:java17:1.0@signature"
33 signature "net.sf.androidscents.signature:android-api-level-14:4.0_r4@signature"
nmittler02c953e2015-01-26 14:03:11 -080034}
Kun Zhang687a6f42015-08-17 16:27:03 -070035
Eric Andersoncb53bbf2017-06-16 14:53:51 -070036javadoc {
37 // We want io.grpc.Internal, but not io.grpc.Internal*
38 exclude 'io/grpc/Internal?*.java'
39 exclude 'io/grpc/internal/**'
40}
Eric Anderson6164b7b2017-08-26 17:10:18 -070041
42animalsniffer {
43 // Don't check sourceSets.jmh
ZHANG Dapeng5ce10f02018-06-11 18:35:18 -070044 sourceSets = [
45 sourceSets.main,
46 sourceSets.test
47 ]
Eric Anderson6164b7b2017-08-26 17:10:18 -070048}