sbt-protobuf icon indicating copy to clipboard operation
sbt-protobuf copied to clipboard

Add gRPC/protobuf3 support.

Open aloiscochard opened this issue 9 years ago • 2 comments

It's actually purely config, but that would be nice to have some facilities, I suppose we could get java_rpc_out and plugin value generated behind a gRPC flag or something.

Here is the hacked config I have in my toy project at the moment:

      version in protobufConfig := "3.0.0-alpha-3.1",
      protocOptions in protobufConfig ++= Seq(
        "--plugin=protoc-gen-java_rpc=/usr/local/bin/protoc-gen-grpc-java",
        "--java_rpc_out=examples/target/scala-2.11/src_managed/main/compiled_protobuf"
      )

What do you think?

aloiscochard avatar Jul 13 '15 20:07 aloiscochard

FYI

  • https://github.com/trueaccord/ScalaPB/issues/44
  • https://github.com/xuwei-k/grpc-scala-sample

xuwei-k avatar Dec 09 '15 20:12 xuwei-k

@aloiscochard can this be modified to use grpc jar from repo instead of local binary?

ghost avatar Apr 26 '16 10:04 ghost

Here's my PR for this - https://github.com/sbt/sbt-protobuf/pull/177

eed3si9n avatar Mar 07 '24 05:03 eed3si9n