You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by md...@apache.org on 2023/03/11 11:53:39 UTC

[incubator-pekko-connectors-kafka] branch main updated: Replace ci-release with dynver

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

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


The following commit(s) were added to refs/heads/main by this push:
     new bf871676 Replace ci-release with dynver
bf871676 is described below

commit bf871676dd5e3a9889da90fc4b9c19290790d4e1
Author: Matthew de Detrich <ma...@aiven.io>
AuthorDate: Sat Mar 11 11:03:56 2023 +0100

    Replace ci-release with dynver
---
 project/ProjectSettings.scala | 20 +++++++-------------
 project/plugins.sbt           |  3 +--
 2 files changed, 8 insertions(+), 15 deletions(-)

diff --git a/project/ProjectSettings.scala b/project/ProjectSettings.scala
index 2363ed55..2acdf4c7 100644
--- a/project/ProjectSettings.scala
+++ b/project/ProjectSettings.scala
@@ -15,13 +15,16 @@ import net.aichler.jupiter.sbt.Import.jupiterTestFramework
 import org.scalafmt.sbt.ScalafmtPlugin.autoImport.scalafmtOnCompile
 import sbt.{ Def, _ }
 import sbt.Keys._
-import xerial.sbt.Sonatype.autoImport.sonatypeCredentialHost
 import org.mdedetrich.apache.sonatype.SonatypeApachePlugin
 import SonatypeApachePlugin.autoImport.apacheSonatypeDisclaimerFile
+import sbtdynver.DynVerPlugin
+import sbtdynver.DynVerPlugin.autoImport.dynverSonatypeSnapshots
 
 object ProjectSettings extends AutoPlugin {
 
-  override val requires = SonatypeApachePlugin
+  override val requires = SonatypeApachePlugin && DynVerPlugin
+
+  override def trigger = allRequirements
 
   val onLoadMessage: String = """
     |** Welcome to the Apache Pekko Kafka Connector! **
@@ -116,17 +119,8 @@ object ProjectSettings extends AutoPlugin {
     javafmtOnCompile := false,
     ThisBuild / mimaReportSignatureProblems := true,
     projectInfoVersion := (if (isSnapshot.value) "snapshot" else version.value),
-    publishMavenStyle := true,
-    pomIncludeRepository := (_ => false),
-    credentials ++= apacheNexusCredentials,
-    sonatypeCredentialHost := apacheBaseRepo,
     apacheSonatypeDisclaimerFile := Some((LocalRootProject / baseDirectory).value / "DISCLAIMER"))
 
-  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
-    }
+  override lazy val buildSettings = Seq(
+    dynverSonatypeSnapshots := true)
 }
diff --git a/project/plugins.sbt b/project/plugins.sbt
index c93a962c..8f923e60 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -1,7 +1,6 @@
 addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
-addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.10")
 addSbtPlugin("net.aichler" % "sbt-jupiter-interface" % "0.9.1")
-addSbtPlugin("org.mdedetrich" % "sbt-apache-sonatype" % "0.1.5")
+addSbtPlugin("org.mdedetrich" % "sbt-apache-sonatype" % "0.1.6")
 // discipline
 addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.7.0")
 addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")


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