|
1 | 1 | import com.typesafe.tools.mima.plugin.MimaPlugin.mimaDefaultSettings |
2 | 2 | import sbtrelease.ReleaseStateTransformations._ |
3 | 3 |
|
4 | | -val kryoVersion = "4.0.0" |
5 | | -val bijectionVersion = "0.9.4" |
6 | | -val algebirdVersion = "0.12.0" |
7 | 4 | val akkaVersion = "2.4.16" |
| 5 | +val algebirdVersion = "0.12.0" |
| 6 | +val bijectionVersion = "0.9.4" |
| 7 | +val kryoVersion = "4.0.0" |
| 8 | +val scroogeVersion = "4.12.0" |
8 | 9 |
|
9 | 10 | val sharedSettings = mimaDefaultSettings ++ scalariformSettings ++ Seq( |
10 | 11 | organization := "com.twitter", |
@@ -169,10 +170,18 @@ lazy val chill = Project( |
169 | 170 |
|
170 | 171 | def akka(scalaVersion: String) = |
171 | 172 | (scalaVersion match { |
172 | | - case "2.10.6" => "com.typesafe.akka" %% "akka-actor" % "2.3.16" |
| 173 | + case s if s.startsWith("2.10.") => "com.typesafe.akka" %% "akka-actor" % "2.3.16" |
173 | 174 | case _ => "com.typesafe.akka" %% "akka-actor" % akkaVersion |
174 | 175 | }) % "provided" |
175 | 176 |
|
| 177 | +def scrooge(scalaVersion: String) = { |
| 178 | + val scroogeBase = "com.twitter" %% "scrooge-serializer" |
| 179 | + scalaVersion match { |
| 180 | + case s if s.startsWith("2.10.") => scroogeBase % "4.7.0" // the last 2.10 version |
| 181 | + case _ => scroogeBase % scroogeVersion |
| 182 | + } |
| 183 | +} |
| 184 | + |
176 | 185 | lazy val chillAkka = module("akka").settings( |
177 | 186 | resolvers += Resolver.typesafeRepo("releases"), |
178 | 187 | libraryDependencies ++= Seq( |
@@ -221,10 +230,9 @@ lazy val chillThrift = module("thrift").settings( |
221 | 230 | ) |
222 | 231 |
|
223 | 232 | lazy val chillScrooge = module("scrooge").settings( |
224 | | - crossScalaVersions := crossScalaVersions.value.filterNot(_.startsWith("2.12")), |
225 | 233 | libraryDependencies ++= Seq( |
226 | 234 | "org.apache.thrift" % "libthrift" % "0.6.1" exclude("junit", "junit"), |
227 | | - "com.twitter" %% "scrooge-serializer" % "3.20.0" |
| 235 | + scalaVersion (sv => scrooge(sv)).value |
228 | 236 | ) |
229 | 237 | ).dependsOn(chill % "test->test;compile->compile") |
230 | 238 |
|
|
0 commit comments