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/07/18 13:09:34 UTC

[incubator-pekko-persistence-dynamodb] branch main updated: Update build.sbt (#63)

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 ce1041d  Update build.sbt (#63)
ce1041d is described below

commit ce1041d0aae0f06b8845d2010a192e8738c998a4
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Tue Jul 18 14:09:29 2023 +0100

    Update build.sbt (#63)
    
    use pekko 1.0.0 release
    
    copy over pekko snapshot logic from pekko-http
    
    scalafmt
---
 build.sbt                     |  4 ----
 project/PekkoDependency.scala | 15 ++++-----------
 2 files changed, 4 insertions(+), 15 deletions(-)

diff --git a/build.sbt b/build.sbt
index 9eef02a..a531a1f 100644
--- a/build.sbt
+++ b/build.sbt
@@ -18,10 +18,6 @@ crossVersion := CrossVersion.binary
 val amzVersion = "1.12.286"
 val testcontainersScalaVersion = "0.40.10"
 
-// TODO: Remove when Pekko has a proper release
-resolvers += Resolver.ApacheMavenSnapshotsRepo
-updateOptions := updateOptions.value.withLatestSnapshots(false)
-
 ThisBuild / apacheSonatypeProjectProfile := "pekko"
 ThisBuild / versionScheme := Some(VersionScheme.SemVerSpec)
 sourceDistName := "incubating-pekko-persistence-dynamodb"
diff --git a/project/PekkoDependency.scala b/project/PekkoDependency.scala
index 787a160..ee2e530 100644
--- a/project/PekkoDependency.scala
+++ b/project/PekkoDependency.scala
@@ -37,22 +37,15 @@ object PekkoDependency {
         Sources(pekkoSources)
       case None =>
         Option(System.getProperty("pekko.build.pekko.version")) match {
-          case Some("main")        => mainSnapshot
-          case Some("release-1.0") =>
-            // Don't 'downgrade' building even if pekko.sources asks for it
-            // (typically for the docs that require Pekko 1.0)
-            if (defaultVersion.startsWith("1.0")) Artifact(determineLatestSnapshot("0.0.0"), true)
-            else Artifact(defaultVersion)
-          case Some("default") | None =>
-            // TODO: Revert to Artifact(defaultVersion) when release of Pekko is made
-            mainSnapshot
-          case Some(other) => Artifact(other, true)
+          case Some("main")           => mainSnapshot
+          case Some("default") | None => Artifact(defaultVersion)
+          case Some(other)            => Artifact(other, true)
         }
     }
   }
 
   // Default version updated only when needed, https://pekko.apache.org/docs/pekko/current/project/downstream-upgrade-strategy.html
-  val minimumExpectedPekkoVersion = "0.0.0+26720-01379c41-SNAPSHOT"
+  val minimumExpectedPekkoVersion = "1.0.0"
   val default = pekkoDependency(defaultVersion = minimumExpectedPekkoVersion)
   val docs = pekkoDependency(defaultVersion = minimumExpectedPekkoVersion)
 


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