2015-10-28 10:53:18 +08:00
|
|
|
// Add dependency on the protobuf plugin
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
2018-06-12 09:35:18 +08:00
|
|
|
maven { // The google mirror is less flaky than mavenCentral()
|
|
|
|
url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
|
2015-10-28 10:53:18 +08:00
|
|
|
}
|
2018-06-12 09:35:18 +08:00
|
|
|
dependencies { classpath libraries.protobuf_plugin }
|
2015-10-28 10:53:18 +08:00
|
|
|
}
|
|
|
|
|
2015-04-11 07:35:23 +08:00
|
|
|
description = 'gRPC: Protobuf Nano'
|
2015-02-26 04:34:28 +08:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
compile project(':grpc-core'),
|
|
|
|
libraries.protobuf_nano,
|
|
|
|
libraries.guava
|
2018-08-10 00:09:21 +08:00
|
|
|
signature "org.codehaus.mojo.signature:java17:1.0@signature"
|
|
|
|
signature "net.sf.androidscents.signature:android-api-level-14:4.0_r4@signature"
|
2015-08-14 05:39:34 +08:00
|
|
|
}
|
2015-10-28 10:53:18 +08:00
|
|
|
|
|
|
|
configureProtoCompilation()
|
|
|
|
|
|
|
|
if (project.hasProperty('protobuf')) {
|
2018-06-12 09:35:18 +08:00
|
|
|
protobuf {
|
|
|
|
generateProtoTasks {
|
|
|
|
all().each { task ->
|
|
|
|
task.builtins {
|
|
|
|
remove java
|
|
|
|
javanano { option 'ignore_services=true' }
|
|
|
|
}
|
|
|
|
}
|
2015-10-28 10:53:18 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|