zio-grpc icon indicating copy to clipboard operation
zio-grpc copied to clipboard

Mill Support?

Open Jacke opened this issue 4 years ago • 2 comments

Hey guys, how to integrate your wonderful project into the mill build app, https://github.com/lihaoyi/mill ?  👀

Jacke avatar Aug 02 '20 01:08 Jacke

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

thesamet avatar Aug 02 '20 18:08 thesamet

Here https://com-lihaoyi.github.io/mill/mill/Plugin_ScalaPB.html at the bottom of the page there is an example adding --zio-out

DanielBlanco avatar May 10 '22 14:05 DanielBlanco