Skip to content

CharlesAHunt/scalapb-gradle-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.