sbt-protobuf is a Sbt plugin to compile google protobuf files.
This Plugin use the ScalaBuff library to compile protobuf files.
Add the following line to your project/plugins.sbt
:
addSbtPlugin("com.qifun" % "sbt-protobuf" % "0.1.0")
And add settings to your build.sbt
:
libraryDependencies += "net.sandrogrzicic" %% "scalabuff-compiler" % "1.3.8"
libraryDependencies += "net.sandrogrzicic" %% "scalabuff-runtime" % "1.3.8"
message Test1 {
required int32 id = 1;
required string name = 2;
optional string email = 3;
}
Run compile
command in sbt.