zio-grpc
zio-grpc copied to clipboard
Mill Support?
Hey guys, how to integrate your wonderful project into the mill build app, https://github.com/lihaoyi/mill ? 👀
Hey @Jacke , as I am not currently using mill myself, I will need your help here.
Mill support for ScalaPB is based on ScalaPBC. Starting from the most recent version of ScalaPB (0.10.8), ScalaPBC can download a plugin from maven and run it. The command line would be:
scalapbc --jvm-plugin=zio=com.thesamet.scalapb.zio-grpc:zio-grpc-codegen_2.12:0.4.0-RC1 mytest.proto --scala_out=/tmp/foo --zio_out=/tmp/foo
To get this to work in mill, you'll need to get it to build this command line here: https://github.com/lihaoyi/mill/blob/d81662f89b69e548b12cc257e4bbcd1a86e77312/contrib/scalapblib/src/ScalaPBWorker.scala#L26-L29
Here https://com-lihaoyi.github.io/mill/mill/Plugin_ScalaPB.html at the bottom of the page there is an example adding --zio-out