summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt26
1 files changed, 16 insertions, 10 deletions
diff --git a/build.sbt b/build.sbt
index 53ae1b3..c279897 100644
--- a/build.sbt
+++ b/build.sbt
@@ -14,23 +14,29 @@ startYear := Some(2011)
licenses := Seq("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
-scalaVersion := "2.10.1"
+scalaVersion := "2.10.3"
scalacOptions <<= scalaVersion map {
case "2.9.3" => Seq("-unchecked", "-deprecation", "-encoding", "utf8")
- case "2.10.1" => Seq("-feature", "-language:implicitConversions", "-unchecked", "-deprecation", "-encoding", "utf8")
+ case x if x startsWith "2.10" => Seq("-feature", "-language:implicitConversions", "-unchecked", "-deprecation", "-encoding", "utf8")
}
resolvers += Opts.resolver.sonatypeReleases
libraryDependencies <++= scalaVersion { sv =>
- Seq(
- "org.parboiled" %% "parboiled-scala" % "1.1.5" % "compile",
- sv match {
- case "2.9.3" => "org.specs2" %% "specs2" % "1.12.4.1" % "test"
- case "2.10.1" => "org.specs2" %% "specs2" % "1.14" % "test"
- }
- )
+ Seq("org.parboiled" %% "parboiled-scala" % "1.1.5" % "compile") ++
+ (sv match {
+ case "2.9.3" =>
+ Seq(
+ "org.specs2" %% "specs2" % "1.12.4.1" % "test",
+ "org.scalacheck" %% "scalacheck" % "1.10.0" % "test"
+ )
+ case x if x startsWith "2.10" =>
+ Seq(
+ "org.specs2" %% "specs2" % "2.3.10" % "test",
+ "org.scalacheck" %% "scalacheck" % "1.11.3" % "test"
+ )
+ })
}
scaladocOptions <<= (name, version).map { (n, v) => Seq("-doc-title", n + " " + v) }
@@ -53,7 +59,7 @@ OsgiKeys.additionalHeaders := Map("-removeheaders" -> "Include-Resource,Private-
// publishing
///////////////
-crossScalaVersions := Seq("2.9.3", "2.10.1")
+crossScalaVersions := Seq("2.9.3", "2.10.3")
scalaBinaryVersion <<= scalaVersion(sV => if (CrossVersion.isStable(sV)) CrossVersion.binaryScalaVersion(sV) else sV)