Commit c4ca252
committed
fix: exclude protobuf-javalite to resolve Bazel protobuf runtime conflicts
rocketmq-proto:2.1.2 transitively depends on grpc-protobuf-lite, which
pulls in protobuf-javalite. This artifact contains classes in the same
com.google.protobuf package as protobuf-java but with an incompatible
class hierarchy (GeneratedMessageLite vs GeneratedMessageV3). When both
jars are on the classpath, the wrong classes get loaded, causing:
- NoSuchMethodError: TimestampProto.getDescriptor() (lite has no descriptors)
- VerifyError: Duration not assignable to AbstractMessage (lite Duration
extends GeneratedMessageLite, not AbstractMessage)
Maven pom.xml avoids this by excluding all transitive deps from
rocketmq-proto. Apply the equivalent in Bazel via excluded_artifacts.1 parent 980fb7f commit c4ca252
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
129 | 132 | | |
130 | 133 | | |
131 | 134 | | |
| |||
0 commit comments