Skip to content

qifun/sbt-protobuf

Repository files navigation

sbt-protobuf

Build Status

sbt-protobuf is a Sbt plugin to compile google protobuf files.

This Plugin use the ScalaBuff library to compile protobuf files.

Usage

Step 1: Install sbt-protobuf into your project

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"

Step 2: Put your protobuf files at src/protobuf/yourPackage/YourProto.proto

message Test1 {
  required int32 id = 1;
  required string name = 2;
  optional string email = 3;
}

Step 3: Just compile it!

Run compile command in sbt.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages