diff --git a/RELEASE.md b/RELEASE.md index dd3a2a1..289aadb 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -9,4 +9,5 @@ sbt -v --java-home /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents > + test > project akka-http-cors > + publishSigned +> sonatypeBundleRelease ``` diff --git a/build.sbt b/build.sbt index 1fea552..fd552f9 100644 --- a/build.sbt +++ b/build.sbt @@ -12,48 +12,28 @@ lazy val commonSettings = Seq( "-Ywarn-numeric-widen", "-Ywarn-unused", ), + homepage := Some(url("https://github.com/lomigmegard/akka-http-cors")), + licenses := Seq("Apache 2" -> url("https://www.apache.org/licenses/LICENSE-2.0.txt")), + scmInfo := Some( + ScmInfo( + url("https://github.com/lomigmegard/akka-http-cors"), + "scm:git@github.com:lomigmegard/akka-http-cors.git" + ) + ), + developers := List( + Developer(id="lomigmegard", name="Lomig Mégard", email="", url=url("https://lomig.ch")) + ), ) lazy val publishSettings = Seq( publishMavenStyle := true, publishArtifact in Test := false, pomIncludeRepository := { _ => false }, - - publishTo := { - val nexus = "https://oss.sonatype.org/" - if (isSnapshot.value) - Some("snapshots" at nexus + "content/repositories/snapshots") - else - Some("releases" at nexus + "service/local/staging/deploy/maven2") - }, - - pomExtra := { - https://github.com/lomigmegard/akka-http-cors - - - Apache 2 - https://www.apache.org/licenses/LICENSE-2.0.txt - - - - git@github.com:lomigmegard/akka-http-cors.git - scm:git:git@github.com:lomigmegard/akka-http-cors.git - - - - lomigmegard - Lomig Mégard - https://lomig.ch - - - }, + publishTo := sonatypePublishToBundle.value, ) lazy val dontPublishSettings = Seq( - //publishSigned := (()), - publish := (()), - publishLocal := (()), - publishArtifact := false, + skip in publish := true, ) lazy val root = (project in file(".")) diff --git a/project/plugins.sbt b/project/plugins.sbt index c37bd78..1fa403e 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,2 +1,4 @@ addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.3.7") addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.0") +addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1") +addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.2")