Skip to content

Instantly share code, notes, and snippets.

@tbje
Created November 23, 2011 11:26
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 tbje/1388471 to your computer and use it in GitHub Desktop.
Save tbje/1388471 to your computer and use it in GitHub Desktop.
Different versions of sbt and global plugins
import sbt._
import Default._
libraryDependencies <++= (scalaVersion, sbtVersion) {
case (scalaVersion, sbtVersion @ "0.11.0") => Seq(
sbtPluginExtra("name.heikoseeberger.groll" % "groll" % "0.4.0-SNAPSHOT", sbtVersion, scalaVersion),
sbtPluginExtra("com.typesafe.sbteclipse" % "sbteclipse" % "1.5.0-SNAPSHOT", sbtVersion, scalaVersion)
)
case (scalaVersion, sbtVersion @ "0.11.1") => Seq(
sbtPluginExtra("com.typesafe.sbtscalariform" % "sbtscalariform" % "0.2.0", sbtVersion, scalaVersion),
sbtPluginExtra("com.typesafe.sbteclipse" % "sbteclipse" % "1.5.0-SNAPSHOT", sbtVersion, scalaVersion)
)
case _ => Seq()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment