From e7885a33178f3b2f25fd95709241d40c60c2a0a5 Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Mon, 7 Jun 2021 10:36:27 -0700 Subject: [PATCH] netty/shaded: Include deps automatically Previously it required manually listing the direct deps of grpc-netty which is error-prone as evidinced by the fact that we were missing multiple deps (guava, perfmark-api). This didn't cause a problem because grpc-core happens to bring in these same deps. --- netty/shaded/build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/netty/shaded/build.gradle b/netty/shaded/build.gradle index 551ed67b47a..421d5f86bb7 100644 --- a/netty/shaded/build.gradle +++ b/netty/shaded/build.gradle @@ -17,7 +17,9 @@ dependencies { project(':grpc-testing-proto'), project(':grpc-testing'), libraries.truth - shadow project(':grpc-core') + shadow project(':grpc-netty').configurations.runtimeClasspath.allDependencies.matching { + it.group != 'io.netty' + } } jar {