blob: 955fccaf7ce14d9a28067cc04fa868c15a1282a4 (
plain) (
tree)
|
|
name := "spray-json"
version := "1.3.4-SNAPSHOT"
organization := "io.spray"
organizationHomepage := Some(new URL("http://spray.io"))
description := "A Scala library for easy and idiomatic JSON (de)serialization"
homepage := Some(new URL("https://github.com/spray/spray-json"))
startYear := Some(2011)
licenses := Seq("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt"))
scalaVersion := "2.11.11"
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")
case _ =>
Seq()
})
(scalacOptions in doc) ++= Seq("-doc-title", name.value + " " + version.value)
// generate boilerplate
Boilerplate.settings
// OSGi settings
osgiSettings
OsgiKeys.exportPackage := Seq("""spray.json.*;version="${Bundle-Version}"""")
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.11", "2.12.3")
scalaBinaryVersion := {
val sV = scalaVersion.value
if (CrossVersion.isScalaApiCompatible(sV))
CrossVersion.binaryScalaVersion(sV)
else
sV
}
publishMavenStyle := true
useGpg := true
publishTo := {
val nexus = "https://oss.sonatype.org/"
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 }
pomExtra :=
<scm>
<url>git://github.com/spray/spray.git</url>
<connection>scm:git:git@github.com:spray/spray.git</connection>
</scm>
<developers>
<developer><id>sirthias</id><name>Mathias Doenitz</name></developer>
<developer><id>jrudolph</id><name>Johannes Rudolph</name></developer>
</developers>
|