File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments