ScalaPBWorker

mill.contrib.scalapblib.ScalaPBWorker

Attributes

Source
ScalaPBWorker.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def compile(scalaPBClasspath: Seq[PathRef], scalaPBSources: Seq[Path], scalaPBOptions: String, dest: Path, scalaPBCExtraArgs: Seq[String], generators: Seq[Generator])(using ctx: TaskCtx): Result[PathRef]

compile protobuf using ScalaPBC

compile protobuf using ScalaPBC

Value parameters

dest

output path

scalaPBCExtraArgs

extra arguments other than --scala_out=<options>:output_path, --proto_path=source_parent, source

scalaPBClasspath

classpaths for ScalaPBC to run

scalaPBOptions

option string specific for scala generator. (the options in --scala_out=<options>:output_path)

scalaPBSources

proto files to be compiles

Attributes

Returns

execute result with path ref to dest

Source
ScalaPBWorker.scala
def compileOptions(protocPath: Option[String], includes: Seq[Path], additionalArgs: Seq[String]): Seq[String]

Build arguments for ScalaPBC, except scala_out/proto_path for source/source

Build arguments for ScalaPBC, except scala_out/proto_path for source/source

Value parameters

additionalArgs

other arguments.

includes

proto paths other than source proto.

protocPath

optional protoc path.

Attributes

Returns

arguments for ScalaPBC

Source
ScalaPBWorker.scala