diff options
author | adamw <adam@warski.org> | 2017-07-24 10:28:49 +0200 |
---|---|---|
committer | adamw <adam@warski.org> | 2017-07-24 10:28:49 +0200 |
commit | b1d90b7178514be0bb56ed60305147a7b5d47a24 (patch) | |
tree | a71e836792093504bfdf644a9fec5f6974721e29 /build.sbt | |
parent | e490caf2317af9b3b481a177244ed52a0c613c86 (diff) | |
download | sttp-b1d90b7178514be0bb56ed60305147a7b5d47a24.tar.gz sttp-b1d90b7178514be0bb56ed60305147a7b5d47a24.tar.bz2 sttp-b1d90b7178514be0bb56ed60305147a7b5d47a24.zip |
Experimenting with sbt-release-early, part 1
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" |