Skip to content
Browse files

Updated testing dependencies to support various Scala version.

  • Loading branch information...
1 parent cb82e39 commit 3590fa979d9da320515d51328c4fedb71308b39f @d6y d6y committed May 27, 2012
Showing with 16 additions and 5 deletions.
  1. +16 −5 build.sbt
View
21 build.sbt
@@ -18,11 +18,22 @@ libraryDependencies <++= liftVersion { v =>
Nil
}
-libraryDependencies ++= Seq(
- "org.apache.sanselan" % "sanselan" % "0.97-incubator",
- "org.scala-tools.testing" % "specs_2.9.1" % "1.6.9" % "test",
- "org.scala-tools.testing" % "scalacheck_2.9.1" % "1.9" % "test"
-)
+
+libraryDependencies <++= scalaVersion { sv =>
+ "org.apache.sanselan" % "sanselan" % "0.97-incubator" ::
+ "org.scala-tools.testing" %% "specs" % (sv match {
+ case "2.8.0" => "1.6.5"
+ case "2.9.1" => "1.6.9"
+ case _ => "1.6.8"
+ }) % "test" ::
+ "org.scalacheck" %% "scalacheck" % (sv match {
+ case "2.8.0" => "1.7"
+ case "2.8.1" | "2.8.2" => "1.8"
+ case _ => "1.9"
+ }) % "test" ::
+ Nil
+}
+
publishTo <<= version { _.endsWith("SNAPSHOT") match {
case true => Some("snapshots" at "https://oss.sonatype.org/content/repositories/snapshots")

0 comments on commit 3590fa9

Please sign in to comment.
Something went wrong with that request. Please try again.