You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by jr...@apache.org on 2023/02/14 12:56:00 UTC

[incubator-pekko-http] branch main updated: setup publishing to apache nexus (#47)

This is an automated email from the ASF dual-hosted git repository.

jrudolph pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-http.git


The following commit(s) were added to refs/heads/main by this push:
     new a8c23a766 setup publishing to apache nexus (#47)
a8c23a766 is described below

commit a8c23a766bf738ae7ba783bc140e51246def49d7
Author: Johannes Rudolph <jo...@gmail.com>
AuthorDate: Tue Feb 14 13:55:53 2023 +0100

    setup publishing to apache nexus (#47)
---
 .github/workflows/publish.yml | 11 ++++-------
 build.sbt                     | 10 ++--------
 project/Publish.scala         | 13 ++++++++++---
 project/plugins.sbt           |  1 +
 4 files changed, 17 insertions(+), 18 deletions(-)

diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 6e6aa0f83..b612bd0af 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -3,7 +3,6 @@ name: Publish
 on:
   push:
     branches: [ main ]
-    tags: [ v* ]
 
 jobs:
   publish-artifacts:
@@ -27,13 +26,11 @@ jobs:
       - name: Install graphviz
         run: sudo apt-get install -y graphviz
 
-      - name: Publish Artifacts to Sonatype / Maven
-        run: sbt -jvm-opts .jvmopts-ghactions ci-release
+      - name: Publish to Apache Maven repo
+        run: sbt -jvm-opts .jvmopts-ghactions +publish
         env:
-          CI_SONATYPE_RELEASE: "; sonatypePrepare; sonatypeBundleUpload; sonatypeClose"
-          PGP_SECRET: ${{ secrets.PGP_SECRET }}
-          SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
-          SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
+          NEXUS_USER: ${{ secrets.NEXUS_USER }}
+          NEXUS_PW: ${{ secrets.NEXUS_PW }}
 
   publish-docs:
     name: Publish documentation
diff --git a/build.sbt b/build.sbt
index a92452d94..e43f9aeeb 100644
--- a/build.sbt
+++ b/build.sbt
@@ -12,19 +12,12 @@ import com.lightbend.paradox.apidoc.ApidocPlugin.autoImport.apidocRootPackage
 
 inThisBuild(Def.settings(
   organization := "org.apache.pekko",
-  organizationName := "Apache Pekko",
-  organizationHomepage := Some(url("https://www.apache.org/")),
-  homepage := Some(url("https://pekko.apache.org/")),
   apiURL := {
     val apiVersion = if (isSnapshot.value) "current" else version.value
     Some(url(s"https://doc.akka.io/api/akka-http/$apiVersion/"))
   },
   scmInfo := Some(
     ScmInfo(url("https://github.com/apache/incubator-pekko-http"), "git@github.com:apache/incubator-pekko-http.git")),
-  developers := List(
-    Developer("contributors", "Contributors", "dev@pekko.apache.org",
-      url("https://github.com/apache/incubator-pekko-http/graphs/contributors"))),
-  startYear := Some(2022),
   licenses := Seq("Apache-2.0" -> url("https://opensource.org/licenses/Apache-2.0")),
   description := "Pekko Http: Modern, fast, asynchronous, streaming-first HTTP server and client.",
   testOptions ++= Seq(
@@ -38,7 +31,8 @@ inThisBuild(Def.settings(
       s"Building Pekko HTTP ${version.value} against Pekko ${PekkoDependency.pekkoVersion} on Scala ${(httpCore / scalaVersion).value}")
     (onLoad in Global).value
   },
-  scalafixScalaBinaryVersion := scalaBinaryVersion.value))
+  scalafixScalaBinaryVersion := scalaBinaryVersion.value,
+  apacheSonatypeProjectProfile := "pekko"))
 
 // When this is updated the set of modules in Http.allModules should also be updated
 lazy val userProjects: Seq[ProjectReference] = List[ProjectReference](
diff --git a/project/Publish.scala b/project/Publish.scala
index cc03c19d7..50167e39d 100644
--- a/project/Publish.scala
+++ b/project/Publish.scala
@@ -8,6 +8,7 @@ import scala.language.postfixOps
 import sbt.{ Def, _ }
 import Keys._
 import xerial.sbt.Sonatype.autoImport.sonatypeProfileName
+import org.mdedetrich.apache.sonatype.SonatypeApachePlugin
 
 /**
  * For projects that are not published.
@@ -23,9 +24,15 @@ object NoPublish extends AutoPlugin {
 }
 
 object Publish extends AutoPlugin {
-  override def requires = plugins.JvmPlugin
+  override def requires = SonatypeApachePlugin
   override def trigger = AllRequirements
 
-  override def projectSettings: Seq[Def.Setting[_]] = Seq(
-    sonatypeProfileName := "com.typesafe")
+  override lazy val projectSettings = Seq(
+    startYear := Some(2022),
+    developers := List(
+      Developer(
+        "pekko-http-contributors",
+        "Apache Pekko HTTP Contributors",
+        "dev@pekko.apache.org",
+        url("https://github.com/apache/incubator-pekko-http/graphs/contributors"))))
 }
diff --git a/project/plugins.sbt b/project/plugins.sbt
index a20cfe465..5642ef3db 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -26,6 +26,7 @@ addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.7.0")
 addSbtPlugin("net.bzzt" % "sbt-reproducible-builds" % "0.30")
 addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.0")
 addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10")
+addSbtPlugin("org.mdedetrich" % "sbt-apache-sonatype" % "0.1.0")
 
 // used in ValidatePullRequest to check github PR comments whether to build all subprojects
 libraryDependencies += "org.kohsuke" % "github-api" % "1.306"


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org