aboutsummaryrefslogtreecommitdiff
path: root/alts
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 /alts
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 'alts')
-rw-r--r--alts/build.gradle27
1 files changed, 12 insertions, 15 deletions
diff --git a/alts/build.gradle b/alts/build.gradle
index ee397210c..c950edffe 100644
--- a/alts/build.gradle
+++ b/alts/build.gradle
@@ -5,14 +5,10 @@ targetCompatibility = 1.7
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 }
}
dependencies {
@@ -24,10 +20,10 @@ dependencies {
libraries.protobuf
runtime project(':grpc-grpclb')
testCompile libraries.guava,
- libraries.guava_testlib,
- libraries.junit,
- libraries.mockito,
- libraries.truth
+ libraries.guava_testlib,
+ libraries.junit,
+ libraries.mockito,
+ libraries.truth
signature 'org.codehaus.mojo.signature:java17:1.0@signature'
}
@@ -36,9 +32,10 @@ configureProtoCompilation()
[compileJava, compileTestJava].each() {
// ALTS retuns a lot of futures that we mostly don't care about.
// protobuf calls valueof. Will be fixed in next release (google/protobuf#4046)
- it.options.compilerArgs += ["-Xlint:-deprecation", "-Xep:FutureReturnValueIgnored:OFF"]
+ it.options.compilerArgs += [
+ "-Xlint:-deprecation",
+ "-Xep:FutureReturnValueIgnored:OFF"
+ ]
}
-javadoc {
- exclude 'io/grpc/alts/internal/**'
-}
+javadoc { exclude 'io/grpc/alts/internal/**' }