Skip to content

Commit

Permalink
build bijection-scrooge for scala 2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
colinmarc committed Feb 20, 2015
1 parent 76f6377 commit e97acbe
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -209,22 +209,13 @@ object BijectionBuild extends Build {
)
).dependsOn(bijectionCore % "test->test;compile->compile")

def scroogeBuildDeps(scalaVersion: String): Seq[sbt.ModuleID] = isScala210x(scalaVersion) match {
case false => Seq()
case true => Seq(
"com.twitter" %% "scrooge-serializer" % "3.6.0"
)
}

lazy val bijectionScrooge = module("scrooge").settings(
skip in compile := !isScala210x(scalaVersion.value),
skip in test := !isScala210x(scalaVersion.value),
publishArtifact := isScala210x(scalaVersion.value),

osgiExportAll("com.twitter.bijection.scrooge"),
libraryDependencies ++= Seq(
"org.apache.thrift" % "libthrift" % "0.6.1" exclude("junit", "junit")
) ++ scroogeBuildDeps(scalaVersion.value)
"org.apache.thrift" % "libthrift" % "0.6.1" exclude("junit", "junit"),
"com.twitter" %% "scrooge-serializer" % "3.17.0",
"com.twitter" %% "finagle-core" % "6.24.0" % "test"
)
).dependsOn(bijectionCore % "test->test;compile->compile")

lazy val bijectionJson = module("json").settings(
Expand Down

0 comments on commit e97acbe

Please sign in to comment.