Skip to content

Commit 07f9472

Browse files
committed
Only run mima for non-M versions
1 parent fa6dcaa commit 07f9472

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

build.sbt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,14 @@ lazy val core = (projectMatrix in file("core"))
3030
Compile / doc / scalacOptions ~= (_.filterNot(Set("-Xfatal-warnings"))),
3131
Compile / doc / scalacOptions --= Seq("-Xlint:doc-detached"),
3232
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value % Provided,
33-
mimaPreviousArtifacts := Set(organization.value %% moduleName.value % "1.0.0-M5")
33+
mimaPreviousArtifacts := {
34+
val minorUnchanged = previousStableVersion.value.flatMap(CrossVersion.partialVersion) == CrossVersion.partialVersion(version.value)
35+
val isRcOrMilestone = version.value.contains("M") || version.value.contains("RC")
36+
if (minorUnchanged && !isRcOrMilestone)
37+
previousStableVersion.value.map(organization.value %% moduleName.value % _).toSet
38+
else
39+
Set.empty
40+
}
3441
)
3542
.jvmPlatform(scalaVersions = scala2)
3643
.jsPlatform(scalaVersions = scala2)

0 commit comments

Comments
 (0)