Skip to content

Instantly share code, notes, and snippets.

@bmc
Created May 17, 2011 13:41
Show Gist options
  • Save bmc/976482 to your computer and use it in GitHub Desktop.
Save bmc/976482 to your computer and use it in GitHub Desktop.
Supporting ScalaTest with Scala 2.8 and 2.9 in SBT
val (scalatestArtifact, scalatestVersion) = buildScalaVersion match
{
case "2.7.7" => ("scalatest", "1.2")
case "2.8.0" => ("scalatest", "1.3")
case "2.8.1" => ("scalatest", "1.3")
case "2.9.0" => ("scalatest_2.9.0", "1.4.1")
case n => error("Unsupported Scala version " + n)
}
val scalatest = "org.scalatest" % scalatestArtifact % scalatestVersion % "test"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment