diff options
author | adamw <adam@warski.org> | 2017-07-25 12:01:08 +0200 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-07-25 12:01:08 +0200 |
commit | d5f334123629dd0cc331d5d9ebbb1a570739d8fb (patch) | |
tree | 171d44a73388cb08a3e3d109356f45bcd55cedaa /build.sbt | |
parent | 8e2e4d0e93c33b61ec7aae3edb992400f77d51a3 (diff) | |
download | sttp-d5f334123629dd0cc331d5d9ebbb1a570739d8fb.tar.gz sttp-d5f334123629dd0cc331d5d9ebbb1a570739d8fb.tar.bz2 sttp-d5f334123629dd0cc331d5d9ebbb1a570739d8fb.zip |
Preparing for sbt-release
Diffstat (limited to 'build.sbt')
-rw-r--r-- | build.sbt | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -1,12 +1,19 @@ val commonSettings = Seq( organization := "com.softwaremill.sttp", - version := "0.0.2", scalaVersion := "2.12.2", crossScalaVersions := Seq(scalaVersion.value, "2.11.8"), scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature", "-Xlint"), scalafmtOnCompile := true, scalafmtVersion := "1.0.0", - releaseEarlyWith := SonatypePublisher, + // publishing + 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) + }, publishArtifact in Test := false, publishMavenStyle := true, scmInfo := Some( @@ -17,9 +24,10 @@ val commonSettings = Seq( licenses := ("Apache-2.0", 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") + // sbt-release + releaseCrossBuild := true, + releasePublishArtifactsAction := PgpKeys.publishSigned.value, + releaseIgnoreUntrackedFiles := true ) val akkaHttpVersion = "10.0.9" |