diff --git a/stream/bk-grpc-name-resolver/src/test/java/org/apache/bookkeeper/grpc/resolver/GrpcChannelsTest.java b/stream/bk-grpc-name-resolver/src/test/java/org/apache/bookkeeper/grpc/resolver/GrpcChannelsTest.java
index 9df1bf1deb8..220f85c54a6 100644
--- a/stream/bk-grpc-name-resolver/src/test/java/org/apache/bookkeeper/grpc/resolver/GrpcChannelsTest.java
+++ b/stream/bk-grpc-name-resolver/src/test/java/org/apache/bookkeeper/grpc/resolver/GrpcChannelsTest.java
@@ -22,7 +22,7 @@
import static org.junit.Assert.assertTrue;
import io.grpc.ManagedChannelBuilder;
-import io.grpc.netty.NettyChannelBuilder;
+import io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder;
import org.apache.bookkeeper.clients.config.StorageClientSettings;
import org.apache.bookkeeper.clients.utils.GrpcChannels;
import org.junit.Test;
diff --git a/stream/clients/java/base/src/test/java/org/apache/bookkeeper/clients/utils/GrpcChannelsTest.java b/stream/clients/java/base/src/test/java/org/apache/bookkeeper/clients/utils/GrpcChannelsTest.java
index 3e3e81e98e8..f5b5fab1bed 100644
--- a/stream/clients/java/base/src/test/java/org/apache/bookkeeper/clients/utils/GrpcChannelsTest.java
+++ b/stream/clients/java/base/src/test/java/org/apache/bookkeeper/clients/utils/GrpcChannelsTest.java
@@ -24,7 +24,7 @@
import io.grpc.ManagedChannelBuilder;
import io.grpc.inprocess.InProcessChannelBuilder;
-import io.grpc.netty.NettyChannelBuilder;
+import io.grpc.netty.shaded.io.grpc.netty.NettyChannelBuilder;
import org.apache.bookkeeper.clients.config.StorageClientSettings;
import org.junit.Test;
diff --git a/stream/common/pom.xml b/stream/common/pom.xml
index b12f41d3a50..dbc98d23ce9 100644
--- a/stream/common/pom.xml
+++ b/stream/common/pom.xml
@@ -42,7 +42,7 @@
io.grpc
- grpc-netty-shaded
+ grpc-netty
org.bouncycastle
@@ -62,6 +62,10 @@
+
+ io.grpc
+ grpc-netty-shaded
+
javax.annotation
javax.annotation-api
diff --git a/stream/tests-common/pom.xml b/stream/tests-common/pom.xml
index f1ca667c871..a57b44d28cc 100644
--- a/stream/tests-common/pom.xml
+++ b/stream/tests-common/pom.xml
@@ -34,7 +34,7 @@
io.grpc
- grpc-netty-shaded
+ grpc-netty
org.bouncycastle
@@ -54,6 +54,10 @@
+
+ io.grpc
+ grpc-netty-shaded
+
com.google.protobuf
protobuf-java