[pulsar-client] fix protobuf dependency with shaded pulsar-client#4523
[pulsar-client] fix protobuf dependency with shaded pulsar-client#4523rdhabalia wants to merge 1 commit intoapache:masterfrom
Conversation
|
@rdhabalia not sure if I understand the problem here. If protobuf-shaded is not added, the shaded client should be always not usable, no? |
it doesn't work when we try to exclude all transitive dependencies from it. pulsar-client is a shaded jar so, we don't want to fetch any transitive dependencies from it. So, it throws above RunTimeException when we exclude all the dependencies from it because it excludes protobuf and client-api as well.. |
|
@rdhabalia okay. but how about other transitive dependencies? Is protobuf-shaded the only transitive dependency? This doesn't sounds like a correct approach to me. |
There are still some of the dependencies that are not being shaded (eg: lz4-java because the JNI would not work if shaded) |
|
@rdhabalia my feeling this issue is not a blocker for 2.4.0. Can we move it to 2.5.0? If we come to an agreement before 2.4.0 release, we can still include it in 2.4.0. |
|
yes moving to 2.5 for now and I will see if it's possible to create a shaded jar without fetching any transitive dependecies. |
|
@rdhabalia is this ready for review ? |
Motivation
Right now, pulsar-client doesn't include classes of
pulsar::protobuf-shadedand because of that it throws below runtime error