Home | History | Annotate | Download | only in protobuf-nano
      1 // Add dependency on the protobuf plugin
      2 buildscript {
      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 
     10 description = 'gRPC: Protobuf Nano'
     11 
     12 dependencies {
     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 
     20 configureProtoCompilation()
     21 
     22 if (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