We have both use grpc and cassandra driver in out project, but the dependency of netty is difference. The netty of grpc used is 4.1.x. And the this is a break version.So can we upgrade netty to the newer version? Thanks.
Hi , not sure what our timeline is for adopting netty 4.1 or 5.0, but in the near term you can use the shaded jar which is the driver bundled with netty shaded under a different package structure so it doesn't conflict with a version that is already in your classpath.
I will try it.Many thanks
does the shaded jar work for you?
We'll want to upgrade to Netty 4.1 at some point so I'm scheduling this for 3.2.0, which would be a good time to do it.
Actually, we've decided to revert this change on 3.2.0 (mainly to keep the Netty version in sync with some of our internal tools).
Netty 4.1 is backward compatible with 4.0, so if someone is interested in some new 4.1 feature, they can exclude the driver's Netty dependencies and declare the 4.1 ones explicitly.
If it's just to avoid dependency hell, another option is to use the shaded version like Andy mentioned.