Skip to content

Commit 617b395

Browse files
fkowaljohnynek
authored andcommitted
chill-akka support scala 2.12 #266 (#275)
(cherry picked from commit c4446bb)
1 parent 1591dac commit 617b395

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ matrix:
66
script: ./sbt ++$TRAVIS_SCALA_VERSION clean test mimaReportBinaryIssues
77

88
- scala: 2.11.8
9+
jdk: oraclejdk8
910
script: ./sbt ++$TRAVIS_SCALA_VERSION clean coverage test coverageReport mimaReportBinaryIssues
1011
after_success:
1112
- bash <(curl -s https://codecov.io/bash)

build.sbt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import com.typesafe.tools.mima.plugin.MimaPlugin.mimaDefaultSettings
33
val kryoVersion = "2.21"
44
val bijectionVersion = "0.9.4"
55
val algebirdVersion = "0.12.0"
6-
val akkaVersion = "2.3.6"
6+
val akkaVersion = "2.4.16"
77

88
val sharedSettings = mimaDefaultSettings ++ scalariformSettings ++ Seq(
99
organization := "com.twitter",
10-
scalaVersion := "2.11.8",
10+
scalaVersion := "2.12.1",
1111
crossScalaVersions := Seq("2.10.6", "2.11.8", "2.12.1"),
1212
scalacOptions ++= Seq("-unchecked", "-deprecation"),
1313
ScalariformKeys.preferences := formattingPreferences,
@@ -153,12 +153,17 @@ lazy val chill = Project(
153153
mimaPreviousArtifacts := Set("com.twitter" %% "chill" % binaryCompatVersion)
154154
).dependsOn(chillJava)
155155

156+
def akka(scalaVersion: String) =
157+
(scalaVersion match {
158+
case "2.10.6" => "com.typesafe.akka" %% "akka-actor" % "2.3.16"
159+
case _ => "com.typesafe.akka" %% "akka-actor" % akkaVersion
160+
}) % "provided"
161+
156162
lazy val chillAkka = module("akka").settings(
157163
resolvers += Resolver.typesafeRepo("releases"),
158-
crossScalaVersions := crossScalaVersions.value.filterNot(_.startsWith("2.12")),
159164
libraryDependencies ++= Seq(
160165
"com.typesafe" % "config" % "1.2.1",
161-
"com.typesafe.akka" %% "akka-actor" % akkaVersion % "provided"
166+
scalaVersion (sv => akka(sv)).value
162167
)
163168
).dependsOn(chill % "test->test;compile->compile")
164169

0 commit comments

Comments
 (0)