Skip to content

Instantly share code, notes, and snippets.

@gseitz
Created September 19, 2011 22:01
Show Gist options
  • Save gseitz/1227745 to your computer and use it in GitHub Desktop.
Save gseitz/1227745 to your computer and use it in GitHub Desktop.
mini sbt-protobuf-scalabuf setup
import sbt._
import Keys._
import ProtobufPlugin._
object build extends Build {
// ... the usual project setup stuff thingly
settings = Defaults.defaultSettings ++ protobufSettings ++ Seq(
scalaSource in protobufConfig <<= (sourceDirectory)(_ / "generated_scala")
)
}
// ./project/plugins/build.sbt
resolvers += "gseitz @ github" at "http://gseitz.github.com/maven/"
addSbtPlugin("com.github.gseitz" % "sbt-protobuf-scalabuff" % "0.3-SNAPSHOT")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment