From 0db3a50df65db181b8e3c8af79c5cdda332e458a Mon Sep 17 00:00:00 2001 From: Patrik Nordwall Date: Fri, 24 May 2024 14:30:23 +0200 Subject: [PATCH] chore: prepare AkkaVersionInDocs for 2.10 --- docs/src/main/paradox/getting-started.md | 2 +- project/Dependencies.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/main/paradox/getting-started.md b/docs/src/main/paradox/getting-started.md index bd9ab2ec..6992890b 100644 --- a/docs/src/main/paradox/getting-started.md +++ b/docs/src/main/paradox/getting-started.md @@ -22,7 +22,7 @@ This plugin depends on Akka $akka.version$ or later, and note that it is importa dependencies are in the same version, so it is recommended to depend on them explicitly to avoid problems with transient dependencies causing an unlucky mix of versions. -The plugin is published for Scala 2.13 and 2.12. +The plugin is published for Scala 2.13 and 3.3 ## Enabling diff --git a/project/Dependencies.scala b/project/Dependencies.scala index 70090f55..e598df10 100644 --- a/project/Dependencies.scala +++ b/project/Dependencies.scala @@ -10,7 +10,7 @@ object Dependencies { val Scala2Versions = Seq(Scala213) val ScalaVersions = Dependencies.Scala2Versions :+ Dependencies.Scala3 val AkkaVersion = System.getProperty("override.akka.version", "2.9.3") - val AkkaVersionInDocs = AkkaVersion.take(3) + val AkkaVersionInDocs = VersionNumber(AkkaVersion).numbers match { case Seq(major, minor, _*) => s"$major.$minor" } val AkkaPersistenceJdbcVersion = "5.4.0" // only in migration tool tests val AkkaProjectionVersionInDocs = "current" val H2Version = "2.2.224"