Skip to content

Instantly share code, notes, and snippets.

@pr1001
Created November 1, 2011 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pr1001/1331815 to your computer and use it in GitHub Desktop.
Save pr1001/1331815 to your computer and use it in GitHub Desktop.
util.sbt
name := "util"
organization := "com.miogiro"
version := "0.1"
scalaVersion := "2.9.1"
crossScalaVersions := Seq("2.8.1", "2.9.1")
// use Salat instead of Casbash directly
resolvers += "repo.novus rels" at "http://repo.novus.com/releases/"
resolvers += "repo.novus snaps" at "http://repo.novus.com/snapshots/"
libraryDependencies += "com.novus" %% "salat-core" % "0.0.8-SNAPSHOT"
// ScalaTest
libraryDependencies <<= (scalaVersion, libraryDependencies) { (sv, deps) =>
// select the ScalaTest version based on the Scala version
val versionMap = Map("2.8.1" -> "1.5.1", "2.9.1" -> "1.6.1")
val testVersion = versionMap.getOrElse(sv, error("Unsupported Scala version " + sv))
// append the ScalaTest dependency to the existing dependencies
deps :+ ("org.scalatest" %% "scalatest" % testVersion % "test")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment