From fbb0e1cceeae5f420edd94968b1b9379cba79972 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pawlik?= Date: Tue, 22 Aug 2023 08:28:27 +0200 Subject: [PATCH] exclude failed release from mima --- build.sbt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build.sbt b/build.sbt index 69d92b50..be611a3e 100644 --- a/build.sbt +++ b/build.sbt @@ -104,6 +104,10 @@ lazy val activemqAkka = module("activemq", directory = "connectors") lazy val activemqPekko = module("activemq-pekko", directory = "connectors") .settings( name := "pass4s-connector-pekko-activemq", + mimaPreviousArtifacts := { + val artifacts = mimaPreviousArtifacts.value + artifacts.filterNot(_.revision >= "0.4.4") // this module has been published in 0.4.4, this setting can be removed in 0.5.x + }, resolvers += "Apache Snapshots" at "https://repository.apache.org/content/repositories/snapshots/", // Resolvers to be removed when stable version is released resolvers ++= Resolver.sonatypeOssRepos("snapshots"), libraryDependencies ++= Seq( @@ -230,6 +234,9 @@ lazy val demo = module("demo") ) .dependsOn(activemqPekko, sns, sqs, extra, logging) +// Those versions failed to release +val versionsExcludedFromMima = List("0.4.3") + lazy val commonSettings = Seq( organization := "com.ocadotechnology", compilerOptions, @@ -240,6 +247,10 @@ lazy val commonSettings = Seq( "com.disneystreaming" %% "weaver-framework" % Versions.Weaver, "com.disneystreaming" %% "weaver-scalacheck" % Versions.Weaver ).map(_ % Test), + mimaPreviousArtifacts := { + val artifacts = mimaPreviousArtifacts.value + artifacts.filterNot(artifact => versionsExcludedFromMima.contains(artifact.revision)) + }, testFrameworks += new TestFramework("weaver.framework.CatsEffect") )