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 compile (libraries.guava) { 16 // prefer 2.2.0 from libraries instead of 2.1.3 17 exclude group: 'com.google.errorprone', module: 'error_prone_annotations' 18 // prefer 3.0.2 from libraries instead of 3.0.1 19 exclude group: 'com.google.code.findbugs', module: 'jsr305' 20 // prefer 1.17 from libraries instead of 1.14 21 exclude group: 'org.codehaus.mojo', module: 'animal-sniffer-annotations' 22 } 23 signature "org.codehaus.mojo.signature:java17:1.0@signature" 24 signature "net.sf.androidscents.signature:android-api-level-14:4.0_r4@signature" 25} 26 27configureProtoCompilation() 28 29if (project.hasProperty('protobuf')) { 30 protobuf { 31 generateProtoTasks { 32 all().each { task -> 33 task.builtins { 34 remove java 35 javanano { option 'ignore_services=true' } 36 } 37 } 38 } 39 } 40} 41