aboutsummaryrefslogtreecommitdiff
path: root/protobuf-nano
diff options
context:
space:
mode:
authorZHANG Dapeng <zdapeng@google.com>2018-06-11 18:35:18 -0700
committerGitHub <noreply@github.com>2018-06-11 18:35:18 -0700
commit5ce10f0146ddce96bc1e6884fe55d8623880b528 (patch)
tree74dd7fcfff4f3dcc5e9de108d7cfa385bce564ec /protobuf-nano
parent9d26c5c40596693bb643d267ab2f3d25b15ed36b (diff)
downloadgrpc-grpc-java-5ce10f0146ddce96bc1e6884fe55d8623880b528.tar.gz
all: add gradle format checker
This PR adds an automatic gradle format checker and reformats all the *.gradle files. After this, new changes to *.gradle files will fail to build if not in good format, just like checkStyle failure.
Diffstat (limited to 'protobuf-nano')
-rw-r--r--protobuf-nano/build.gradle28
1 files changed, 11 insertions, 17 deletions
diff --git a/protobuf-nano/build.gradle b/protobuf-nano/build.gradle
index 2d2b63007..c8822502e 100644
--- a/protobuf-nano/build.gradle
+++ b/protobuf-nano/build.gradle
@@ -1,14 +1,10 @@
// Add dependency on the protobuf plugin
buildscript {
repositories {
- maven {
- // The google mirror is less flaky than mavenCentral()
- url "https://maven-central.storage-download.googleapis.com/repos/central/data/"
- }
- }
- dependencies {
- classpath libraries.protobuf_plugin
+ maven { // The google mirror is less flaky than mavenCentral()
+ url "https://maven-central.storage-download.googleapis.com/repos/central/data/" }
}
+ dependencies { classpath libraries.protobuf_plugin }
}
description = 'gRPC: Protobuf Nano'
@@ -23,16 +19,14 @@ dependencies {
configureProtoCompilation()
if (project.hasProperty('protobuf')) {
- protobuf {
- generateProtoTasks {
- all().each { task ->
- task.builtins {
- remove java
- javanano {
- option 'ignore_services=true'
- }
+ protobuf {
+ generateProtoTasks {
+ all().each { task ->
+ task.builtins {
+ remove java
+ javanano { option 'ignore_services=true' }
+ }
+ }
}
- }
}
- }
}