You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "mdedetrich (via GitHub)" <gi...@apache.org> on 2023/01/26 11:29:07 UTC

[GitHub] [incubator-pekko] mdedetrich commented on a diff in pull request #129: Properly set sonatype repo settings for publishTo

mdedetrich commented on code in PR #129:
URL: https://github.com/apache/incubator-pekko/pull/129#discussion_r1087724082


##########
project/Publish.scala:
##########
@@ -16,18 +16,21 @@ package org.apache.pekko
 import sbt._
 import sbt.Keys._
 import com.lightbend.sbt.publishrsync.PublishRsyncPlugin.autoImport.publishRsyncHost
-import xerial.sbt.Sonatype.autoImport.sonatypeProfileName
+import xerial.sbt.Sonatype.autoImport._
 
 object Publish extends AutoPlugin {
 
   override def trigger = allRequirements
 
+  private val apacheBaseRepo = "repository.apache.org"
+  private val apacheRepo = s"https://$apacheBaseRepo/content/repositories"
+
   override lazy val projectSettings = Seq(
-    publishTo := Some(pekkoPublishTo.value),
     publishRsyncHost := "akkarepo@gustav.akka.io",
     credentials ++= apacheNexusCredentials,
     organizationName := "Apache Software Foundation",
     organizationHomepage := Some(url("https://www.apache.org")),
+    sonatypeCredentialHost := apacheBaseRepo,

Review Comment:
   This is the base repository which by default is `oss.sonatype.org` (and hence the reason why it was publishing to the wrong location before, the sbt-sonatype plugin sets `publishTo` to indirectly use `sonatypeCredentialHost` and other related sonatype settings).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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