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 /netty/shaded | |
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 'netty/shaded')
-rw-r--r-- | netty/shaded/build.gradle | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/netty/shaded/build.gradle b/netty/shaded/build.gradle index 50ea89569..6ef249b96 100644 --- a/netty/shaded/build.gradle +++ b/netty/shaded/build.gradle @@ -1,36 +1,28 @@ buildscript { - repositories { - jcenter() - } - dependencies { - classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2' - } + repositories { jcenter() } + dependencies { classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.2' } } apply plugin: 'com.github.johnrengelman.shadow' description = "gRPC: Netty Shaded" -sourceSets { - testShadow {} -} +sourceSets { testShadow {} } dependencies { compile project(':grpc-netty') runtime libraries.netty_tcnative testShadowCompile files(shadowJar), - configurations.shadow, - project(':grpc-testing-proto'), - project(':grpc-testing'), - libraries.truth + configurations.shadow, + project(':grpc-testing-proto'), + project(':grpc-testing'), + libraries.truth shadow project(':grpc-core') } -artifacts { - // We want uploadArchives to handle the shadowJar; we don't care about +artifacts { // We want uploadArchives to handle the shadowJar; we don't care about // uploadShadow - archives shadowJar -} + archives shadowJar } shadowJar { classifier = null |