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


The following commit(s) were added to refs/heads/main by this push:
     new 03e631e  re-enable mima (#93)
03e631e is described below

commit 03e631ebbc23e90352fddb6031d71961dc62d9b4
Author: PJ Fanning <[email protected]>
AuthorDate: Mon Nov 13 11:09:59 2023 +0100

    re-enable mima (#93)
    
    * re-enable mima
    
    * hardcode version to compare to due to CI issues
---
 .github/workflows/format.yml |  2 +-
 .scalafmt.conf               |  2 +-
 project/Common.scala         | 12 ++++++++++--
 3 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml
index 76bdebe..abbee25 100644
--- a/.github/workflows/format.yml
+++ b/.github/workflows/format.yml
@@ -22,5 +22,5 @@ jobs:
       - name: Check project is formatted
         uses: jrouly/scalafmt-native-action@v2
         with:
-          version: '3.7.1'
+          version: '3.7.11'
           arguments: '--list --mode diff-ref=origin/main'
diff --git a/.scalafmt.conf b/.scalafmt.conf
index 1aae8a4..23ae712 100644
--- a/.scalafmt.conf
+++ b/.scalafmt.conf
@@ -1,4 +1,4 @@
-version                                  = 3.7.1
+version                                  = 3.7.11
 runner.dialect                           = scala213
 project.git                              = true
 style                                    = defaultWithAlign
diff --git a/project/Common.scala b/project/Common.scala
index 679173b..4cc222e 100644
--- a/project/Common.scala
+++ b/project/Common.scala
@@ -38,6 +38,8 @@ object Common extends AutoPlugin {
         
url("https://github.com/apache/incubator-pekko-projection/graphs/contributors";)),
       description := "Apache Pekko Projection.")
 
+  val mimaCompareVersion = "1.0.0"
+
   override lazy val projectSettings = Seq(
     projectInfoVersion := (if (isSnapshot.value) "snapshot" else 
version.value),
     crossVersion := CrossVersion.binary,
@@ -68,8 +70,14 @@ object Common extends AutoPlugin {
     // -q Suppress stdout for successful tests.
     Test / testOptions += Tests.Argument(TestFrameworks.JUnit, "-a", "-v", 
"-q"),
     Test / logBuffered := false,
-    // temporarily disable mima checks
-    mimaPreviousArtifacts := Set.empty)
+    mimaPreviousArtifacts := {
+      moduleName.value match {
+        case name if name.endsWith("-tests") => Set.empty
+        case _ =>
+          Set(
+            organization.value %% moduleName.value % mimaCompareVersion)
+      }
+    })
 
   override lazy val buildSettings = Seq(
     dynverSonatypeSnapshots := true)


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

Reply via email to