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/pekko-projection.git

commit 52f008d2486e679135406ac616d58c5f8105f9cc
Author: Scala Steward <[email protected]>
AuthorDate: Sat Jan 17 16:30:07 2026 +0000

    Reformat with scalafmt 3.10.4
    
    Executed command: scalafmt --non-interactive
---
 build.sbt                                                 |  9 +++++----
 .../projection/internal/metrics/WaitTimeMetricSpec.scala  |  4 +++-
 .../pekko/projection/jdbc/JdbcOffsetStoreSpec.scala       |  3 ++-
 project/Common.scala                                      | 11 ++++++-----
 project/PekkoDisciplinePlugin.scala                       | 15 ++++++++-------
 .../pekko/projection/slick/SlickOffsetStoreSpec.scala     |  6 ++++--
 6 files changed, 28 insertions(+), 20 deletions(-)

diff --git a/build.sbt b/build.sbt
index 555e4a7..6f3f90c 100644
--- a/build.sbt
+++ b/build.sbt
@@ -72,10 +72,11 @@ lazy val slick =
     .settings(
       // Transitive dependency `scala-reflect` to avoid `NoClassDefFoundError`.
       // See: https://github.com/slick/slick/issues/2933
-      libraryDependencies ++= (CrossVersion.partialVersion(scalaVersion.value) 
match {
-        case Some((2, _)) => Seq("org.scala-lang" % "scala-reflect" % 
scalaVersion.value)
-        case _            => Nil
-      }))
+      libraryDependencies ++=
+        (CrossVersion.partialVersion(scalaVersion.value) match {
+          case Some((2, _)) => Seq("org.scala-lang" % "scala-reflect" % 
scalaVersion.value)
+          case _            => Nil
+        }))
     .settings(Dependencies.slick)
     .settings(AutomaticModuleName.settings("pekko.projection.slick"))
     .settings(
diff --git 
a/core-test/src/test/scala/org/apache/pekko/projection/internal/metrics/WaitTimeMetricSpec.scala
 
b/core-test/src/test/scala/org/apache/pekko/projection/internal/metrics/WaitTimeMetricSpec.scala
index 8478eff..b469fe4 100644
--- 
a/core-test/src/test/scala/org/apache/pekko/projection/internal/metrics/WaitTimeMetricSpec.scala
+++ 
b/core-test/src/test/scala/org/apache/pekko/projection/internal/metrics/WaitTimeMetricSpec.scala
@@ -59,7 +59,9 @@ class WaitTimeMetricAtLeastOnceSpec extends 
WaitTimeMetricSpec {
           SingleHandlerStrategy(single))
 
         runInternal(tt.projectionState) {
-          instruments.creationTimestampInvocations.get should be >= (1 + 1 + 1 
+ 1 + 2 + 2 + 3 + 4 + 5 + 6)
+          instruments.creationTimestampInvocations.get should
+          be >=
+            (1 + 1 + 1 + 1 + 2 + 2 + 3 + 4 + 5 + 6)
           instruments.lastCreationTimestamp.get should be < 
System.currentTimeMillis()
         }
       }
diff --git 
a/jdbc/src/test/scala/org/apache/pekko/projection/jdbc/JdbcOffsetStoreSpec.scala
 
b/jdbc/src/test/scala/org/apache/pekko/projection/jdbc/JdbcOffsetStoreSpec.scala
index dad3ae8..c23691f 100644
--- 
a/jdbc/src/test/scala/org/apache/pekko/projection/jdbc/JdbcOffsetStoreSpec.scala
+++ 
b/jdbc/src/test/scala/org/apache/pekko/projection/jdbc/JdbcOffsetStoreSpec.scala
@@ -301,7 +301,8 @@ abstract class JdbcOffsetStoreSpec(specConfig: 
JdbcSpecConfig)
       }
     }
 
-    s"save and retrieve offsets of type pekko.persistence.query.TimeBasedUUID 
[$dialectLabel]" taggedAs (specConfig.tag) in {
+    s"save and retrieve offsets of type pekko.persistence.query.TimeBasedUUID 
[$dialectLabel]" taggedAs
+    (specConfig.tag) in {
 
       val projectionId = genRandomProjectionId()
 
diff --git a/project/Common.scala b/project/Common.scala
index a4ddf04..cae21c7 100644
--- a/project/Common.scala
+++ b/project/Common.scala
@@ -56,11 +56,12 @@ object Common extends AutoPlugin {
       "-doc-source-url", {
         val branch = if (isSnapshot.value) "main" else s"v${version.value}"
         
s"https://github.com/apache/pekko-projection/tree/${branch}€{FILE_PATH_EXT}#L€{FILE_LINE}";
-      }) ++ (if (scalaBinaryVersion.value.startsWith("3")) {
-               Seq("-skip-packages:org.apache.pekko.pattern")
-             } else {
-               Seq("-skip-packages", "org.apache.pekko.pattern")
-             }),
+      }) ++
+    (if (scalaBinaryVersion.value.startsWith("3")) {
+       Seq("-skip-packages:org.apache.pekko.pattern")
+     } else {
+       Seq("-skip-packages", "org.apache.pekko.pattern")
+     }),
     autoAPIMappings := true,
     apiURL := 
Some(url(s"https://pekko.apache.org/api/pekko-projection/${projectInfoVersion.value}";)),
     // show full stack traces and test case durations
diff --git a/project/PekkoDisciplinePlugin.scala 
b/project/PekkoDisciplinePlugin.scala
index 2cdb055..5c55ad8 100644
--- a/project/PekkoDisciplinePlugin.scala
+++ b/project/PekkoDisciplinePlugin.scala
@@ -37,13 +37,14 @@ object PekkoDisciplinePlugin extends AutoPlugin {
           else Seq.empty
         ),
         Test / scalacOptions --= testUndicipline,
-        Compile / scalacOptions ++= 
(CrossVersion.partialVersion(scalaVersion.value) match {
-          case Some((2, 13)) =>
-            disciplineScalacOptions ++ Set(
-              "-Xlint:-strict-unsealed-patmat")
-          case _ =>
-            Nil
-        }).toSeq,
+        Compile / scalacOptions ++=
+          (CrossVersion.partialVersion(scalaVersion.value) match {
+            case Some((2, 13)) =>
+              disciplineScalacOptions ++ Set(
+                "-Xlint:-strict-unsealed-patmat")
+            case _ =>
+              Nil
+          }).toSeq,
         // Discipline is not needed for the docs compilation run (which uses
         // different compiler phases from the regular run), and in particular
         // '-Ywarn-unused:explicits' is an issue
diff --git 
a/slick/src/test/scala/org/apache/pekko/projection/slick/SlickOffsetStoreSpec.scala
 
b/slick/src/test/scala/org/apache/pekko/projection/slick/SlickOffsetStoreSpec.scala
index ecb7e49..e54c044 100644
--- 
a/slick/src/test/scala/org/apache/pekko/projection/slick/SlickOffsetStoreSpec.scala
+++ 
b/slick/src/test/scala/org/apache/pekko/projection/slick/SlickOffsetStoreSpec.scala
@@ -242,7 +242,8 @@ abstract class SlickOffsetStoreSpec(specConfig: 
SlickSpecConfig)
       }
     }
 
-    s"save and retrieve offsets of type 
org.apache.pekko.persistence.query.Sequence [$dialectLabel]" taggedAs 
(specConfig
+    s"save and retrieve offsets of type 
org.apache.pekko.persistence.query.Sequence [$dialectLabel]" taggedAs
+    (specConfig
       .tag) in {
 
       val projectionId = genRandomProjectionId()
@@ -258,7 +259,8 @@ abstract class SlickOffsetStoreSpec(specConfig: 
SlickSpecConfig)
       }
     }
 
-    s"save and retrieve offsets of type 
org.apache.pekko.persistence.query.TimeBasedUUID [$dialectLabel]" taggedAs 
(specConfig
+    s"save and retrieve offsets of type 
org.apache.pekko.persistence.query.TimeBasedUUID [$dialectLabel]" taggedAs
+    (specConfig
       .tag) in {
 
       val projectionId = genRandomProjectionId()


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to