• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1description = 'gRPC: Protobuf'
2
3buildscript {
4    repositories {
5        maven { // The google mirror is less flaky than mavenCentral()
6            url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
7    }
8    dependencies { classpath libraries.protobuf_plugin }
9}
10
11dependencies {
12    compile project(':grpc-core'),
13            libraries.protobuf
14    compile (libraries.guava) {
15        // prefer 2.2.0 from libraries instead of 2.1.3
16        exclude group: 'com.google.errorprone', module: 'error_prone_annotations'
17        // prefer 3.0.2 from libraries instead of 3.0.1
18        exclude group: 'com.google.code.findbugs', module: 'jsr305'
19        // prefer 1.17 from libraries instead of 1.14
20        exclude group: 'org.codehaus.mojo', module: 'animal-sniffer-annotations'
21    }
22
23    compile (libraries.google_api_protos) {
24        // 'com.google.api:api-common' transitively depends on auto-value, which breaks our
25        // annotations.
26        exclude group: 'com.google.api', module: 'api-common'
27        // Prefer our more up-to-date protobuf over 3.2.0
28        exclude group: 'com.google.protobuf', module: 'protobuf-java'
29    }
30
31    compile (project(':grpc-protobuf-lite')) {
32        exclude group: 'com.google.protobuf', module: 'protobuf-lite'
33    }
34
35    signature "org.codehaus.mojo.signature:java17:1.0@signature"
36}
37
38javadoc.options.links 'https://developers.google.com/protocol-buffers/docs/reference/java/'
39