Skip to content

Commit

Permalink
Merge pull request #155 from twitter/feature/test_akka
Browse files Browse the repository at this point in the history
Feature/test akka
  • Loading branch information
johnynek committed Nov 5, 2013
2 parents a223da8 + 0f0f201 commit bdca40b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
language: scala
scala:
- 2.10.0
- 2.10.3
- 2.9.3
24 changes: 18 additions & 6 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ object ChillBuild extends Build {
version := "0.3.4",
organization := "com.twitter",
scalaVersion := "2.9.3",
crossScalaVersions := Seq("2.9.3", "2.10.0"),
crossScalaVersions := Seq("2.9.3", "2.10.3"),
scalacOptions ++= Seq("-unchecked", "-deprecation"),

// Twitter Hadoop needs this, sorry 1.7 fans
Expand Down Expand Up @@ -89,7 +89,8 @@ object ChillBuild extends Build {
chillBijection,
chillStorm,
chillJava,
chillHadoop
chillHadoop,
chillAkka
)

/**
Expand Down Expand Up @@ -129,12 +130,23 @@ object ChillBuild extends Build {
)
).dependsOn(chillJava)

lazy val chillAkka = module("akka").settings(
resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
libraryDependencies ++= Seq(
def isScala210x(scalaVersion: String) = scalaVersion match {
case version if version startsWith "2.9" => false
case version if version startsWith "2.10" => true
}
def akkaBuildDeps(scalaVersion: String): Seq[sbt.ModuleID] = isScala210x(scalaVersion) match {
case false => Seq()
case true => Seq(
"com.typesafe" % "config" % "0.3.1",
"com.typesafe.akka" % "akka-actor" % "2.0.5"
"com.typesafe.akka" %% "akka-actor" % "2.1.4"
)
}
lazy val chillAkka = module("akka").settings(
resolvers += "Typesafe Repository" at "http://repo.typesafe.com/typesafe/releases/",
skip in compile := !isScala210x(scalaVersion.value),
skip in test := !isScala210x(scalaVersion.value),
publishArtifact := isScala210x(scalaVersion.value),
libraryDependencies ++= akkaBuildDeps(scalaVersion.value)
).dependsOn(chill % "test->test;compile->compile")

lazy val chillBijection = module("bijection").settings(
Expand Down

0 comments on commit bdca40b

Please sign in to comment.