-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MIMA checks to ensure binary compatibility (#1214)
Add MIMA checks to ensure binary compatibility across different zio-kafka versions. Also: use scala 3 syntax in sbt files. Based on #1018 by @myazinn. Mima is disabled in this PR because master is currently _not_ binary compatible with the latest released version. --------- Co-authored-by: Nikita Miazin <myazin.n@list.ru>
- Loading branch information
1 parent
8baa167
commit 778d812
Showing
3 changed files
with
49 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import com.typesafe.tools.mima.core.* | ||
import com.typesafe.tools.mima.core.ProblemFilters.* | ||
import com.typesafe.tools.mima.plugin.MimaKeys.* | ||
import sbt.* | ||
import sbt.Keys.{ name, organization } | ||
|
||
object MimaSettings { | ||
|
||
def mimaSettings(binCompatVersionToCompare: Option[String], failOnProblem: Boolean): Seq[Def.Setting[?]] = | ||
binCompatVersionToCompare match { | ||
case None => | ||
Seq(mimaPreviousArtifacts := Set.empty) | ||
case Some(binCompatVersion) => | ||
Seq( | ||
mimaPreviousArtifacts := Set(organization.value %% name.value % binCompatVersion), | ||
mimaBinaryIssueFilters ++= Seq( | ||
exclude[Problem]("zio.kafka.consumer.internal.*") | ||
), | ||
mimaFailOnProblem := failOnProblem | ||
) | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters