mirror of https://github.com/grpc/grpc-java.git
42 lines
779 B
Groovy
42 lines
779 B
Groovy
// Add dependency on the protobuf plugin
|
|
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath libraries.protobuf_plugin
|
|
}
|
|
}
|
|
|
|
description = 'gRPC: Protobuf Nano'
|
|
|
|
dependencies {
|
|
compile project(':grpc-core'),
|
|
libraries.protobuf_nano,
|
|
libraries.guava
|
|
signature "org.codehaus.mojo.signature:java16:+@signature"
|
|
}
|
|
|
|
configureProtoCompilation()
|
|
|
|
if (project.hasProperty('protobuf')) {
|
|
protobuf {
|
|
generateProtoTasks {
|
|
all().each { task ->
|
|
task.builtins {
|
|
remove java
|
|
javanano {
|
|
option 'ignore_services=true'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
idea {
|
|
module {
|
|
sourceDirs += file("${projectDir}/src/generated/test/javanano");
|
|
}
|
|
}
|