diff options
Diffstat (limited to 'build.sbt')
-rw-r--r-- | build.sbt | 43 |
1 files changed, 13 insertions, 30 deletions
@@ -1,42 +1,25 @@ val commonSettings = Seq( organization := "com.softwaremill.sttp", - version := "0.0.1", + version := "0.0.2", scalaVersion := "2.12.2", crossScalaVersions := Seq(scalaVersion.value, "2.11.8"), scalacOptions ++= Seq("-unchecked", "-deprecation"), scalafmtOnCompile := true, scalafmtVersion := "1.0.0", - // Sonatype OSS deployment - publishTo := { - val nexus = "https://oss.sonatype.org/" - val (name, url) = - if (isSnapshot.value) - ("snapshots", nexus + "content/repositories/snapshots") - else ("releases", nexus + "service/local/staging/deploy/maven2") - Some(name at url) - }, - credentials += Credentials(Path.userHome / ".ivy2" / ".credentials"), + releaseEarlyWith := SonatypePublisher, + publishArtifact in Test := false, publishMavenStyle := true, - pomIncludeRepository := { _ => - false - }, - pomExtra := ( - <scm> - <url>git@github.com/softwaremill/sttp.git</url> - <connection>scm:git:git@github.com/softwaremill/sttp.git</connection> - </scm> - <developers> - <developer> - <id>adamw</id> - <name>Adam Warski</name> - <url>http://www.warski.org</url> - </developer> - </developers> - ), + scmInfo := Some( + ScmInfo(url("https://github.com/softwaremill/sttp"), + "scm:git:git@github.com/softwaremill/sttp.git")), + developers := List( + Developer("adamw", "Adam Warski", "", url("https://softwaremill.com"))), licenses := ("Apache-2.0", - new java.net.URL( - "http://www.apache.org/licenses/LICENSE-2.0.txt")) :: Nil, - homepage := Some(new java.net.URL("http://softwaremill.com/open-source")) + url("http://www.apache.org/licenses/LICENSE-2.0.txt")) :: Nil, + homepage := Some(url("http://softwaremill.com/open-source")), + pgpPassphrase := sys.env.get("PGP_PASSWORD").map(_.toArray), + pgpPublicRing := file(".keys_pub.asc"), + pgpSecretRing := file(".keys_priv.asc") ) val akkaHttpVersion = "10.0.9" |