Skip to content

[bport] Move & truncate the MiMa filters#9436

Merged
dwijnand merged 1 commit intoscala:2.12.xfrom
dwijnand:2.12/mima
Jan 14, 2021
Merged

[bport] Move & truncate the MiMa filters#9436
dwijnand merged 1 commit intoscala:2.12.xfrom
dwijnand:2.12/mima

Conversation

@dwijnand
Copy link
Member

Backport cherry-pick of 710c91e, aka #9328.

First of all, move the damn MiMa filters outside of build.sbt! In
build.sbt it overpowers the rest of the build definition and also (it
would seem) IntelliJ is better at handling Scala files than sbt files.

Now, if a contributor needs to add filters, they can be advised to
change "project/MimaFilters.scala".

Secondly, bump the mimaReferenceVersion (which is used to define
mimaPreviousArtifacts). Normal projects (without forwards
compatibility) want to always bump that, so that new methods don't go
missing. But for Scala it's less of a problem. However, it is because
it means we have an always appended list of exclusions, and those might
end up hiding real problems.

While I was at it I fixed mimaReportBinaryIssues it can be called
directly, by resetting ThisBuild / mimaFailOnNoPrevious.

Backport cherry-pick of 710c91e.

First of all, move the damn MiMa filters outside of build.sbt!  In
build.sbt it overpowers the rest of the build definition and also (it
would seem) IntelliJ is better at handling Scala files than sbt files.

Now, if a contributor needs to add filters, they can be advised to
change "project/MimaFilters.scala".

Secondly, bump the `mimaReferenceVersion` (which is used to define
`mimaPreviousArtifacts`).  Normal projects (without forwards
compatibility) want to always bump that, so that new methods don't go
missing.  But for Scala it's less of a problem.  However, it is because
it means we have an always appended list of exclusions, and those might
end up hiding real problems.

While I was at it I fixed `mimaReportBinaryIssues` it can be called
directly, by resetting `ThisBuild / mimaFailOnNoPrevious`.
@scala-jenkins scala-jenkins added this to the 2.12.14 milestone Jan 14, 2021
import autoImport._

override val globalSettings = Seq(
mimaReferenceVersion := Some("2.12.13"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ought to be in the release steps, I think

@SethTisue SethTisue added the internal not resulting in user-visible changes (build changes, tests, internal cleanups) label Jan 14, 2021
@dwijnand dwijnand merged commit 2f1a807 into scala:2.12.x Jan 14, 2021
@dwijnand dwijnand deleted the 2.12/mima branch January 14, 2021 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal not resulting in user-visible changes (build changes, tests, internal cleanups)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants