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/15 10:11:54 UTC

[incubator-pekko-connectors] branch main updated: Set dynverSonatypeSnapshots to fix snapshot version

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.git


The following commit(s) were added to refs/heads/main by this push:
     new 043fc4999 Set dynverSonatypeSnapshots to fix snapshot version
043fc4999 is described below

commit 043fc49995a03e350139d732d7230116b9ff6ab8
Author: Matthew de Detrich <ma...@aiven.io>
AuthorDate: Wed Mar 15 10:33:40 2023 +0100

    Set dynverSonatypeSnapshots to fix snapshot version
---
 build.sbt            |  1 +
 project/Common.scala | 13 +++++++------
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/build.sbt b/build.sbt
index 326d26512..b1307611d 100644
--- a/build.sbt
+++ b/build.sbt
@@ -1,5 +1,6 @@
 ThisBuild / resolvers += "Apache Nexus Snapshots".at("https://repository.apache.org/content/repositories/snapshots/")
 ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots")
+ThisBuild / apacheSonatypeProjectProfile := "pekko"
 
 lazy val `pekko-connectors` = project
   .in(file("."))
diff --git a/project/Common.scala b/project/Common.scala
index 777b751b3..bcbad9450 100644
--- a/project/Common.scala
+++ b/project/Common.scala
@@ -16,8 +16,8 @@ import com.lightbend.paradox.projectinfo.ParadoxProjectInfoPluginKeys._
 import com.lightbend.sbt.JavaFormatterPlugin.autoImport.javafmtOnCompile
 import com.typesafe.tools.mima.plugin.MimaKeys._
 import org.mdedetrich.apache.sonatype.SonatypeApachePlugin
-import org.mdedetrich.apache.sonatype.SonatypeApachePlugin.autoImport._
-import xerial.sbt.Sonatype.autoImport.sonatypeProfileName
+import sbtdynver.DynVerPlugin
+import sbtdynver.DynVerPlugin.autoImport.dynverSonatypeSnapshots
 
 object Common extends AutoPlugin {
 
@@ -28,10 +28,9 @@ object Common extends AutoPlugin {
 
   override def trigger = allRequirements
 
-  override def requires = JvmPlugin && HeaderPlugin && SonatypeApachePlugin
+  override def requires = JvmPlugin && HeaderPlugin && SonatypeApachePlugin && DynVerPlugin
 
   override def globalSettings = Seq(
-    apacheSonatypeProjectProfile := "pekko",
     scmInfo := Some(ScmInfo(url("https://github.com/apache/incubator-pekko-connectors"),
       "git@github.com:apache/incubator-pekko-connectors.git")),
     developers += Developer("contributors",
@@ -118,6 +117,8 @@ object Common extends AutoPlugin {
     // timeout.
     Test / testOptions += Tests.Argument(TestFrameworks.ScalaTest, "-F", "4"),
     scalafmtOnCompile := false,
-    javafmtOnCompile := false,
-    sonatypeProfileName := "org.apache.pekko")
+    javafmtOnCompile := false)
+
+  override lazy val buildSettings = Seq(
+    dynverSonatypeSnapshots := true)
 }


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