The grpc API is stable now since 1.0, so distributing generated sources, while not recommended, sound work. But you should consider distributing the proto alongside anyway. Maybe someone wants to communicate with your service in another language than Java?
--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/f109acf1-3e34-45c5-a2a5-e65c9979e346%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Currently, I am not distributing the proto file but compile the proto
file into Java classes and create a JAR file in the service A build.
The JAR file gets publishes to my internal artifact repository but
without grpc-stub and grpc-protobuf transitive dependencies
(compileOnly). The calling service includes gRPC and the jar file with
the compile classes and then creates a ManagedChannel and a stub for
the xxxGrpc service.
Another way I could think of is to put the proto file into a JAR file
and add the JAR file to dependencies in all calling services. Then I'd
have to compile protobuf classes in each calling service but the gRPC
versions in both services are fully independent.