Skip to content

Instantly share code, notes, and snippets.

@alexflav23
Created April 28, 2014 09:54
Show Gist options
  • Save alexflav23/11367298 to your computer and use it in GitHub Desktop.
Save alexflav23/11367298 to your computer and use it in GitHub Desktop.
Defining Thrift dependencies in Finagle services.
lazy val service2Thrift = Project(
id = "service2-thrift",
base = file("service2-thrift"),
settings = Project.defaultSettings ++
VersionManagement.newSettings ++
sharedSettings ++
ScroogeSBT.newSettings ++
publishSettings
).settings(
name := "service2-thrift",
scroogeThriftSourceFolder in Compile <<= baseDirectory {
base => {
base / "src/main/resources"
}
},
scroogeThriftDependencies in Compile := Seq(
"service1-thrift_2.10"
),
libraryDependencies ++= Seq(ne
"com.example" %% "service1-thrift" % service1Version,
"org.apache.thrift" % "libthrift" % thriftVersion,
"com.twitter" %% "scrooge-core" % scroogeVersion,
"com.twitter" %% "scrooge-runtime" % scroogeVersion,
"com.twitter" %% "finagle-thrift" % finagleVersion
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment