summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorMathias <mathias@spray.io>2012-12-27 10:52:45 +0100
committerMathias <mathias@spray.io>2012-12-27 10:52:45 +0100
commitf031d9d8eae7aff8cbce3481e982ead31103d450 (patch)
tree4ee4a266fe32531173ffe545dce6d6dbba305f95 /build.sbt
parent76c8a574718d53156b76b67bfea3de8942e948f5 (diff)
downloadspray-json-f031d9d8eae7aff8cbce3481e982ead31103d450.tar.gz
spray-json-f031d9d8eae7aff8cbce3481e982ead31103d450.tar.bz2
spray-json-f031d9d8eae7aff8cbce3481e982ead31103d450.zip
Upgrade to Scala 2.10.0
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt24
1 files changed, 13 insertions, 11 deletions
diff --git a/build.sbt b/build.sbt
index 5ba5c22..2517910 100644
--- a/build.sbt
+++ b/build.sbt
@@ -14,21 +14,24 @@ startYear := Some(2011)
licenses := Seq("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
-scalaVersion := "2.10.0-RC5"
+scalaVersion := "2.10.0"
scalacOptions <<= scalaVersion map {
- case x if x startsWith "2.9" =>
- Seq("-unchecked", "-deprecation", "-encoding", "utf8")
- case x if x startsWith "2.10" =>
- Seq("-feature", "-language:implicitConversions", "-unchecked", "-deprecation", "-encoding", "utf8")
+ case "2.9.2" => Seq("-unchecked", "-deprecation", "-encoding", "utf8")
+ case "2.10.0" => Seq("-feature", "-language:implicitConversions", "-unchecked", "-deprecation", "-encoding", "utf8")
}
resolvers += Opts.resolver.sonatypeReleases
-libraryDependencies ++= Seq(
- "org.parboiled" %% "parboiled-scala" % "1.1.4" % "compile",
- "org.specs2" %% "specs2" % "1.12.3" % "test"
-)
+libraryDependencies <++= scalaVersion { sv =>
+ Seq(
+ "org.parboiled" %% "parboiled-scala" % "1.1.4" % "compile",
+ sv match {
+ case "2.9.2" => "org.specs2" %% "specs2" % "1.12.3" % "test"
+ case "2.10.0" => "org.specs2" %% "specs2" % "1.13" % "test"
+ }
+ )
+}
scaladocOptions <<= (name, version).map { (n, v) => Seq("-doc-title", n + " " + v) }
@@ -37,7 +40,7 @@ scaladocOptions <<= (name, version).map { (n, v) => Seq("-doc-title", n + " " +
// publishing
///////////////
-crossScalaVersions := Seq("2.9.2", "2.10.0-RC5")
+crossScalaVersions := Seq("2.9.2", "2.10.0")
scalaBinaryVersion <<= scalaVersion(sV => if (CrossVersion.isStable(sV)) CrossVersion.binaryScalaVersion(sV) else sV)
@@ -59,7 +62,6 @@ publishTo <<= version { version =>
// ls-sbt
///////////////
-
seq(lsSettings:_*)
(LsKeys.tags in LsKeys.lsync) := Seq("json")