You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by fa...@apache.org on 2023/03/10 09:36:19 UTC

[incubator-pekko-persistence-dynamodb] branch main updated: import sbt-ci-release plugin because it is needed by sbt-apache-sonatype (#22)

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 17179b2  import sbt-ci-release plugin because it is needed by sbt-apache-sonatype (#22)
17179b2 is described below

commit 17179b2b257004ac8fc62aae89cf0349c2526000
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Fri Mar 10 10:36:14 2023 +0100

    import sbt-ci-release plugin because it is needed by sbt-apache-sonatype (#22)
    
    * specify publishTo because publish fails without it
    
    * scalafmt
    
    * refactor
    
    * Fix publishTo
    
    ---------
    
    Co-authored-by: Matthew de Detrich <ma...@aiven.io>
---
 project/Publish.scala | 35 +++++------------------------------
 project/plugins.sbt   |  4 +---
 2 files changed, 6 insertions(+), 33 deletions(-)

diff --git a/project/Publish.scala b/project/Publish.scala
index bb507a3..5eea6f1 100644
--- a/project/Publish.scala
+++ b/project/Publish.scala
@@ -15,45 +15,20 @@ package org.apache.pekko
 import sbt._
 import sbt.Keys._
 
-import java.io.File
-import sbtrelease.ReleasePlugin.autoImport.releasePublishArtifactsAction
 import org.mdedetrich.apache.sonatype.SonatypeApachePlugin
 import SonatypeApachePlugin.autoImport.apacheSonatypeDisclaimerFile
 
 object Publish extends AutoPlugin {
 
-  val defaultPublishTo = settingKey[File]("Default publish directory")
-
   override def trigger = allRequirements
-  override def requires = sbtrelease.ReleasePlugin && SonatypeApachePlugin
+  override def requires = SonatypeApachePlugin
 
   override lazy val projectSettings = Seq(
     crossPaths := false,
-    pomExtra := pekkoPomExtra,
-    credentials ++= apacheNexusCredentials,
     homepage := Some(url("https://github.com/apache/incubator-pekko-persistence-dynamodb")),
-    pomIncludeRepository := { x => false },
-    defaultPublishTo := crossTarget.value / "repository",
+    developers += Developer("contributors",
+      "Contributors",
+      "dev@pekko.apache.org",
+      url("https://github.com/apache/incubator-pekko-persistence-dynamodb/graphs/contributors")),
     apacheSonatypeDisclaimerFile := Some((LocalRootProject / baseDirectory).value / "DISCLAIMER"))
-
-  def pekkoPomExtra = {
-    <developers>
-      <developer>
-        <id>contributors</id>
-        <name>Contributors</name>
-        <email>dev@pekko.apache.org</email>
-        <url>https://github.com/apache/incubator-pekko-persistence-dynamodb/graphs/contributors</url>
-      </developer>
-    </developers>
-  }
-
-  private val apacheBaseRepo = "repository.apache.org"
-
-  private def apacheNexusCredentials: Seq[Credentials] =
-    (sys.env.get("NEXUS_USER"), sys.env.get("NEXUS_PW")) match {
-      case (Some(user), Some(password)) =>
-        Seq(Credentials("Sonatype Nexus Repository Manager", apacheBaseRepo, user, password))
-      case _ =>
-        Seq.empty
-    }
 }
diff --git a/project/plugins.sbt b/project/plugins.sbt
index 79bbc4c..228bf14 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -1,11 +1,9 @@
 resolvers += "Typesafe repository".at("https://repo.typesafe.com/typesafe/releases/")
 
 addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.9.0")
-addSbtPlugin("com.github.gseitz" % "sbt-release" % "1.0.9")
 addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.1")
 addSbtPlugin("com.lightbend" % "sbt-whitesource" % "0.1.7")
 addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.9.3")
 addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")
 addSbtPlugin("org.mdedetrich" % "sbt-apache-sonatype" % "0.1.5")
-// https://github.com/dwijnand/sbt-dynver
-addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
+addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10")


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