Created
April 28, 2014 09:54
-
-
Save alexflav23/11367298 to your computer and use it in GitHub Desktop.
Defining Thrift dependencies in Finagle services.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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