Skip to content

Commit 8e30398

Browse files
authored
Configure bincompat checking against v4.0.0 (#560)
1 parent 0ff6bd4 commit 8e30398

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.sbt

+6-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ val munitCatsEffectVersion = "2.0.0"
5353
val disciplineVersion = "2.0.0"
5454
val scalacheckEffectVersion = "1.0.4"
5555

56+
// All the versions we want to check against for binary compatibility.
57+
// In general, every time we release a new version, we should add it here.
58+
val mimaPreviousVersions = Set("4.0.0")
59+
5660
val core = crossProject(JVMPlatform, JSPlatform)
5761
.in(file("modules/core"))
5862
.settings(
@@ -67,7 +71,7 @@ val core = crossProject(JVMPlatform, JSPlatform)
6771
"org.typelevel" %%% "cats-laws" % catsVersion % Test,
6872
"org.typelevel" %%% "discipline-munit" % disciplineVersion % Test
6973
),
70-
mimaPreviousArtifacts := Set.empty,
74+
mimaPreviousArtifacts := mimaPreviousVersions.map(v => organization.value %%% name.value % v),
7175
Test / tpolecatExcludeOptions += ScalacOptions.warnNonUnitStatement
7276
)
7377
val coreJVM = core.jvm
@@ -86,6 +90,7 @@ val mtlRetry = crossProject(JVMPlatform, JSPlatform)
8690
"org.scalameta" %%% "munit-scalacheck" % munitVersion % Test
8791
),
8892
mimaPreviousArtifacts := Set.empty,
93+
mimaPreviousArtifacts := mimaPreviousVersions.map(v => organization.value %%% name.value % v),
8994
Test / tpolecatExcludeOptions += ScalacOptions.warnNonUnitStatement
9095
)
9196
val mtlJVM = mtlRetry.jvm

0 commit comments

Comments
 (0)