CharlesAHunt / scalapb-gradle-plugin

Gradle Plugin for ScalaPB
12 stars 8 forks source link
gradle-plugin scala scalapb scalapb-gradle-plugin

gradle-scalapb-plugin

This plugin uses the ScalaPB compiler to generate Scala case classes from protocol buffers and put them under the managed sources directory in your project.

You can configure the plugin using:

scalapbConfig {
    dependentProtoSources = ["path/to/external/proto/sources", "or/some/other/path"]
    targetDir = "/target/scala/managed"
    protocVersion = "-v360"
}

ScalaPB will try to download a current Protoc version, which can cause some trouble. In this case set embeddedProtoc = true within scalapbConfig.