aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorEric Anderson <ejona@google.com>2018-08-15 17:39:20 -0700
committerGitHub <noreply@github.com>2018-08-15 17:39:20 -0700
commit3792242ae11ad9a4992ea551629fe108be128d87 (patch)
treef7f5cc9e6976349c141db124217f32b094087b1e /examples
parent0d4051ca6ee0c0240d79f88082831c22c26c4844 (diff)
downloadgrpc-grpc-java-3792242ae11ad9a4992ea551629fe108be128d87.tar.gz
alts: Use grpc-netty-shaded instead of grpc-netty
There's no good way to provide users of ALTS a choice between grpc-netty and grpc-netty-shaded. Since Netty is not exposed through the ALTS API surface, we opt for the shaded version as it has fewer deployment issues. However, this also means that we _can't_ expose any Netty API, like EventLoopGroup.
Diffstat (limited to 'examples')
-rw-r--r--examples/build.gradle3
-rw-r--r--examples/pom.xml8
2 files changed, 10 insertions, 1 deletions
diff --git a/examples/build.gradle b/examples/build.gradle
index 3defa6f9f..b7406d4f7 100644
--- a/examples/build.gradle
+++ b/examples/build.gradle
@@ -35,7 +35,8 @@ dependencies {
compile "io.grpc:grpc-stub:${grpcVersion}"
compileOnly "javax.annotation:javax.annotation-api:1.2"
- // Used for TLS in HelloWorldServerTls
+ // Used in HelloWorldServerTls
+ compile "io.grpc:grpc-netty:${grpcVersion}"
compile "io.netty:netty-tcnative-boringssl-static:${nettyTcNativeVersion}"
compile "com.google.protobuf:protobuf-java-util:${protobufVersion}"
diff --git a/examples/pom.xml b/examples/pom.xml
index 38e482990..93911e79a 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -46,11 +46,19 @@
<version>${grpc.version}</version>
<scope>test</scope>
</dependency>
+
+ <!-- Used in HelloWorldServerTls -->
+ <dependency>
+ <groupId>io.grpc</groupId>
+ <artifactId>grpc-netty</artifactId>
+ <version>${grpc.version}</version>
+ </dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-tcnative-boringssl-static</artifactId>
<version>${netty.tcnative.version}</version>
</dependency>
+
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-common-protos</artifactId>