Eric Anderson | e23f899 | 2015-04-10 15:40:44 -0700 | [diff] [blame] | 1 | description = 'gRPC: Protobuf' |
| 2 | |
Eric Gribkoff | 6cf8f05 | 2017-03-21 14:03:46 -0700 | [diff] [blame] | 3 | buildscript { |
| 4 | repositories { |
ZHANG Dapeng | 5ce10f0 | 2018-06-11 18:35:18 -0700 | [diff] [blame] | 5 | maven { // The google mirror is less flaky than mavenCentral() |
| 6 | url "https://maven-central.storage-download.googleapis.com/repos/central/data/" } |
Eric Gribkoff | 6cf8f05 | 2017-03-21 14:03:46 -0700 | [diff] [blame] | 7 | } |
ZHANG Dapeng | 5ce10f0 | 2018-06-11 18:35:18 -0700 | [diff] [blame] | 8 | dependencies { classpath libraries.protobuf_plugin } |
Eric Gribkoff | 6cf8f05 | 2017-03-21 14:03:46 -0700 | [diff] [blame] | 9 | } |
| 10 | |
Eric Anderson | e23f899 | 2015-04-10 15:40:44 -0700 | [diff] [blame] | 11 | dependencies { |
| 12 | compile project(':grpc-core'), |
| 13 | libraries.protobuf, |
Eric Anderson | 5f0ee3a | 2018-03-23 15:45:05 -0700 | [diff] [blame] | 14 | libraries.guava |
| 15 | |
Eric Gribkoff | 6cf8f05 | 2017-03-21 14:03:46 -0700 | [diff] [blame] | 16 | compile (libraries.google_api_protos) { |
Eric Gribkoff | df69485 | 2017-05-01 14:43:53 -0700 | [diff] [blame] | 17 | // 'com.google.api:api-common' transitively depends on auto-value, which breaks our |
| 18 | // annotations. |
| 19 | exclude group: 'com.google.api', module: 'api-common' |
Eric Anderson | a3ff9cd | 2017-09-18 16:20:18 -0700 | [diff] [blame] | 20 | // Prefer our more up-to-date protobuf over 3.2.0 |
| 21 | exclude group: 'com.google.protobuf', module: 'protobuf-java' |
Eric Gribkoff | 6cf8f05 | 2017-03-21 14:03:46 -0700 | [diff] [blame] | 22 | } |
| 23 | |
Eric Anderson | a8700a7 | 2016-07-29 11:57:41 -0700 | [diff] [blame] | 24 | compile (project(':grpc-protobuf-lite')) { |
| 25 | exclude group: 'com.google.protobuf', module: 'protobuf-lite' |
| 26 | } |
Eric Anderson | 22c4991 | 2015-08-13 14:39:34 -0700 | [diff] [blame] | 27 | |
Eric Gribkoff | 79b2470 | 2018-08-09 09:09:21 -0700 | [diff] [blame] | 28 | signature "org.codehaus.mojo.signature:java17:1.0@signature" |
Eric Anderson | 22c4991 | 2015-08-13 14:39:34 -0700 | [diff] [blame] | 29 | } |
Eric Anderson | f0efb0f | 2015-08-18 14:04:30 -0700 | [diff] [blame] | 30 | |
| 31 | javadoc.options.links 'https://developers.google.com/protocol-buffers/docs/reference/java/' |