Skip to content

Commit

Permalink
Merge pull request #196 from colinmarc/bijectionscrooge-scala211
Browse files Browse the repository at this point in the history
Build bijection-scrooge for scala 2.11
  • Loading branch information
johnynek committed Feb 21, 2015
2 parents 76f6377 + e97acbe commit f6c8894
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 f6c8894

Please sign in to comment.