summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorSeth Tisue <seth@tisue.net>2017-07-27 19:56:40 -0700
committerSeth Tisue <seth@tisue.net>2017-09-14 13:16:41 -0700
commit7089839dcfc1c91f195a4b1dcc6d7b60e40b210c (patch)
treee38509ffd689d673546f17f2a875cee5a583c3a4 /build.sbt
parent8a421f066e99359a3d6fa4cd64cded206376d264 (diff)
downloadspray-json-7089839dcfc1c91f195a4b1dcc6d7b60e40b210c.tar.gz
spray-json-7089839dcfc1c91f195a4b1dcc6d7b60e40b210c.tar.bz2
spray-json-7089839dcfc1c91f195a4b1dcc6d7b60e40b210c.zip
replace pimp with 'rich', 'enrich', 'extension method'
and: * add MiMa so we know the change is binary compatible * use current Scala & sbt versions
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt27
1 files changed, 19 insertions, 8 deletions
diff --git a/build.sbt b/build.sbt
index 2e451e0..955fcca 100644
--- a/build.sbt
+++ b/build.sbt
@@ -1,6 +1,6 @@
name := "spray-json"
-version := "1.3.3"
+version := "1.3.4-SNAPSHOT"
organization := "io.spray"
@@ -14,7 +14,7 @@ startYear := Some(2011)
licenses := Seq("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
-scalaVersion := "2.11.8"
+scalaVersion := "2.11.11"
scalacOptions ++= Seq("-feature", "-language:_", "-unchecked", "-deprecation", "-Xlint", "-encoding", "utf8")
@@ -44,28 +44,39 @@ osgiSettings
OsgiKeys.exportPackage := Seq("""spray.json.*;version="${Bundle-Version}"""")
-OsgiKeys.importPackage <<= scalaVersion { sv => Seq("""scala.*;version="$<range;[==,=+);%s>"""".format(sv)) }
+OsgiKeys.importPackage := Seq("""scala.*;version="$<range;[==,=+);%s>"""".format(scalaVersion.value))
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")
+
///////////////
// publishing
///////////////
-crossScalaVersions := Seq("2.10.6", "2.11.8", "2.12.1")
+crossScalaVersions := Seq("2.10.6", "2.11.11", "2.12.3")
-scalaBinaryVersion <<= scalaVersion(sV => if (CrossVersion.isStable(sV)) CrossVersion.binaryScalaVersion(sV) else sV)
+scalaBinaryVersion := {
+ val sV = scalaVersion.value
+ if (CrossVersion.isScalaApiCompatible(sV))
+ CrossVersion.binaryScalaVersion(sV)
+ else
+ sV
+}
publishMavenStyle := true
useGpg := true
-publishTo <<= version { v: String =>
+publishTo := {
val nexus = "https://oss.sonatype.org/"
- if (v.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
- else Some("releases" at nexus + "service/local/staging/deploy/maven2")
+ if (version.value.trim.endsWith("SNAPSHOT"))
+ Some("snapshots" at nexus + "content/repositories/snapshots")
+ else
+ Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
pomIncludeRepository := { _ => false }