blob: 5f8652caab7ab6ed51a1db75f76e773f40304b89 (
plain) (
tree)
|
|
name := "spray-json"
version := "1.2.2"
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.10.0-RC2"
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")
}
resolvers += "sonatype releases" at "https://oss.sonatype.org/content/repositories/releases/"
libraryDependencies ++= Seq(
"org.parboiled" %% "parboiled-scala" % "1.1.3" % "compile",
"org.specs2" %% "specs2" % "1.12.2" % "test"
)
scaladocOptions <<= (name, version).map { (n, v) => Seq("-doc-title", n + " " + v) }
///////////////
// publishing
///////////////
crossScalaVersions := Seq("2.9.2", "2.10.0-RC2")
scalaBinaryVersion <<= scalaVersion(sV => if (CrossVersion.isStable(sV)) CrossVersion.binaryScalaVersion(sV) else sV)
publishMavenStyle := true
publishTo <<= version { version =>
Some {
"spray repo" at {
// public uri is repo.spray.io, we use an SSH tunnel to the nexus here
"http://localhost:42424/content/repositories/" + {
if (version.trim.endsWith("SNAPSHOT")) "snapshots/" else"releases/"
}
}
}
}
///////////////
// ls-sbt
///////////////
seq(lsSettings:_*)
(LsKeys.tags in LsKeys.lsync) := Seq("json")
(LsKeys.docsUrl in LsKeys.lsync) := Some(new URL("http://spray.github.com/spray/api/spray-json/"))
(externalResolvers in LsKeys.lsync) := Seq("spray repo" at "http://repo.spray.io")
|