• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Add dependency on the protobuf plugin
2buildscript {
3    repositories {
4        maven { // The google mirror is less flaky than mavenCentral()
5            url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
6    }
7    dependencies { classpath libraries.protobuf_plugin }
8}
9
10description = 'gRPC: Protobuf Nano'
11
12dependencies {
13    compile project(':grpc-core'),
14            libraries.protobuf_nano,
15            libraries.guava
16    signature "org.codehaus.mojo.signature:java17:1.0@signature"
17    signature "net.sf.androidscents.signature:android-api-level-14:4.0_r4@signature"
18}
19
20configureProtoCompilation()
21
22if (project.hasProperty('protobuf')) {
23    protobuf {
24        generateProtoTasks {
25            all().each { task ->
26                task.builtins {
27                    remove java
28                    javanano { option 'ignore_services=true' }
29                }
30            }
31        }
32    }
33}
34