diff options
author | Marcos Pereira <marcos.silva@gmail.com> | 2017-10-16 14:50:32 -0500 |
---|---|---|
committer | Marcos Pereira <marcos.silva@gmail.com> | 2017-10-16 14:50:32 -0500 |
commit | d0030a208b92c1b2f3844328f9ba3f9e10bf0c19 (patch) | |
tree | a2db2806b9bd50677435d86cb85565f15155d9ad /build.sbt | |
parent | 7c332d1d67b581e23163a90714fa15615996a7b8 (diff) | |
download | spray-json-d0030a208b92c1b2f3844328f9ba3f9e10bf0c19.tar.gz spray-json-d0030a208b92c1b2f3844328f9ba3f9e10bf0c19.tar.bz2 spray-json-d0030a208b92c1b2f3844328f9ba3f9e10bf0c19.zip |
Cross build to Scala 2.13.0-M2
Diffstat (limited to 'build.sbt')
-rw-r--r-- | build.sbt | 33 |
1 files changed, 22 insertions, 11 deletions
@@ -14,26 +14,34 @@ startYear := Some(2011) licenses := Seq("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt")) -scalaVersion := "2.11.11" +scalaVersion := "2.12.3" scalacOptions ++= Seq("-feature", "-language:_", "-unchecked", "-deprecation", "-Xlint", "-encoding", "utf8") resolvers += Opts.resolver.sonatypeReleases -libraryDependencies ++= Seq( - "org.specs2" %% "specs2-core" % "3.8.6" % "test", - "org.specs2" %% "specs2-scalacheck" % "3.8.6" % "test", - "org.scalacheck" %% "scalacheck" % "1.13.4" % "test" -) - libraryDependencies ++= (CrossVersion.partialVersion(scalaVersion.value) match { case Some((2, n)) if n >= 13 => - Seq("org.scala-lang.modules" %% "scala-parallel-collections" % "0.1.1") + Seq("org.scala-lang.modules" %% "scala-parallel-collections" % "0.1.2") case _ => - Seq() + Nil }) +libraryDependencies ++= (CrossVersion.partialVersion(scalaVersion.value) match { + case Some((2, 10)) => Seq( + "org.specs2" %% "specs2-core" % "3.8.9" % "test", + "org.specs2" %% "specs2-scalacheck" % "3.8.9" % "test", + "org.scalacheck" %% "scalacheck" % "1.13.4" % "test" + ) + case Some((2, n)) if n >= 11 => Seq( + "org.specs2" %% "specs2-core" % "4.0.1" % "test", + "org.specs2" %% "specs2-scalacheck" % "4.0.1" % "test", + "org.scalacheck" %% "scalacheck" % "1.13.5" % "test" + ) + case _ => Nil +}) + (scalacOptions in doc) ++= Seq("-doc-title", name.value + " " + version.value) // generate boilerplate @@ -51,13 +59,16 @@ OsgiKeys.importPackage ++= Seq("""spray.json;version="${Bundle-Version}"""", "*" OsgiKeys.additionalHeaders := Map("-removeheaders" -> "Include-Resource,Private-Package") // Migration Manager -mimaPreviousArtifacts := Set("io.spray" %% "spray-json" % "1.3.3") +mimaPreviousArtifacts := (CrossVersion.partialVersion(scalaVersion.value) match { + case Some((2, 13)) => Set.empty + case _ => Set("io.spray" %% "spray-json" % "1.3.3") +}) /////////////// // publishing /////////////// -crossScalaVersions := Seq("2.10.6", "2.11.11", "2.12.3") +crossScalaVersions := Seq("2.10.6", "2.11.11", "2.12.3", "2.13.0-M2") scalaBinaryVersion := { val sV = scalaVersion.value |