diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 76bdebe2..abbee257 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 1aae8a44..23ae7122 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 679173be..4cc222ee 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)