diff options
author | ZHANG Dapeng <zdapeng@google.com> | 2018-06-11 18:35:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-11 18:35:18 -0700 |
commit | 5ce10f0146ddce96bc1e6884fe55d8623880b528 (patch) | |
tree | 74dd7fcfff4f3dcc5e9de108d7cfa385bce564ec /okhttp | |
parent | 9d26c5c40596693bb643d267ab2f3d25b15ed36b (diff) | |
download | grpc-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 'okhttp')
-rw-r--r-- | okhttp/build.gradle | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/okhttp/build.gradle b/okhttp/build.gradle index 9328a74ce..458d5dfa7 100644 --- a/okhttp/build.gradle +++ b/okhttp/build.gradle @@ -6,22 +6,14 @@ dependencies { // Tests depend on base class defined by core module. testCompile project(':grpc-core').sourceSets.test.output, - project(':grpc-testing'), - project(':grpc-netty') + project(':grpc-testing'), + project(':grpc-netty') signature "org.codehaus.mojo.signature:java16:1.1@signature" } project.sourceSets { - main { - java { - srcDir "${projectDir}/third_party/okhttp/main/java" - } - } - test { - java { - srcDir "${projectDir}/third_party/okhttp/test/java" - } - } + main { java { srcDir "${projectDir}/third_party/okhttp/main/java" } } + test { java { srcDir "${projectDir}/third_party/okhttp/test/java" } } } checkstyleMain.exclude '**/io/grpc/okhttp/internal/**' |