-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove grpc-protobuf dependency for stub runtime #234
Comments
I think we can do that and I gave it a try: Downside is that the user has to specify a protobuf dep, like:
And in the case of
WDYT? |
Looks good. But I have some confusion for I found there are |
The guava dep is transitive for
But is marked as
We don't see this error with |
I found the reason for this problem is the version of Before If you using a low version for Reference: Note: gRPC-Java no longer exposes many transitive dependencies as "compile" dependencies,
but instead specifies them as "runtime" dependencies. Consuming projects using these
dependencies directly will need to explicitly add the dependencies to their compile-time classpath. |
So maybe we should make the |
No, I think. The
|
Looks like it might work to make the |
Yes, it works. But I still think |
Isn't that the source of the version incompatibilities though? |
Ummm...How about upgrade |
If we include the |
Yes, and users do not need to add api("io.grpc:grpc-kotlin-stub:1.1.1")
api("io.grpc:grpc-stub:1.35.6") |
Finally getting the chance to come back to this. So I think we can do is make That seems to be working and I've updated the Does that seem right? |
Good work! just wait for the release. |
* try to remove stub-lite for #234 * try to non-transitive grpc-stub * make grpc-stub transitive * upgrade info * tests need grpc-protobuf * always publish to maven local * fix links * to kts * doc cleanupp * plain console * add retry to arm tests * Update CHANGELOG.md Co-authored-by: Brent Shaffer <betterbrent@google.com> Co-authored-by: Brent Shaffer <betterbrent@google.com>
I found the grpc-kotlin-stub doesn't use any classes from grpc-protobuf/grpc-protobuf-lite, maybe we can use the grpc-api/grpc-stub instead?
Then we can just provide one package for both protobuf and protobuf-lite cases and for non-google official protobuf runtime cases.
The text was updated successfully, but these errors were encountered: