build: fix mima checking for Akka 2.6.0 (#28300)

Previously, due to a syntax problem, only typed artifacts were checked against
2.6.0.

Co-Authored-By: Arnout Engelen <github@bzzt.net>
This commit is contained in:
Johannes Rudolph 2019-12-04 15:40:38 +01:00 committed by GitHub
parent cf0af245ef
commit d0027850e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 9 deletions

View file

@ -0,0 +1,2 @@
# Akka 2.6.0 for Scala 2.13 accidentally contained a copy of the protobuf classes which has now been fixed
ProblemFilters.exclude[MissingClassProblem]("akka.protobufv3.internal.*")

View file

@ -0,0 +1,4 @@
# Internal incompatibilities introduced in the scala 2.13.0->2.13.1 update
ProblemFilters.exclude[IncompatibleSignatureProblem]("akka.remote.EndpointManager#Send.unapply")
ProblemFilters.exclude[IncompatibleSignatureProblem]("akka.remote.artery.Association#OutboundStreamMatValues.unapply")
ProblemFilters.exclude[IncompatibleSignatureProblem]("akka.remote.transport.AkkaPduCodec#Message.unapply")

View file

@ -0,0 +1,10 @@
# Incompatibilities against 2.6.0 / Scala 2.13 in implementation classes
ProblemFilters.exclude[IncompatibleSignatureProblem]("akka.stream.impl.CompletedTraversalBuilder.curried")
ProblemFilters.exclude[IncompatibleSignatureProblem]("akka.stream.impl.CompletedTraversalBuilder.tupled")
ProblemFilters.exclude[IncompatibleSignatureProblem]("akka.stream.impl.CompletedTraversalBuilder.unapply")
ProblemFilters.exclude[IncompatibleSignatureProblem]("akka.stream.impl.CompositeTraversalBuilder.curried")
ProblemFilters.exclude[IncompatibleSignatureProblem]("akka.stream.impl.CompositeTraversalBuilder.tupled")
ProblemFilters.exclude[IncompatibleSignatureProblem]("akka.stream.impl.CompositeTraversalBuilder.unapply")
ProblemFilters.exclude[IncompatibleSignatureProblem]("akka.stream.impl.LinearTraversalBuilder.unapply")
ProblemFilters.exclude[IncompatibleSignatureProblem]("akka.stream.impl.VirtualProcessor#Establishing.unapply")

View file

@ -33,15 +33,19 @@ object MiMa extends AutoPlugin {
else if (projectName.contains("coordination")) 22
else 0
if (!(projectName.contains("typed") || projectName.contains("jackson"))) {
// 2.5.18 is the only release built with Scala 2.12.7, which due to
// https://github.com/scala/bug/issues/11207 produced many more
// static methods than expected. These are hard to filter out, so
// we exclude it here and rely on the checks for 2.5.17 and 2.5.19.
expandVersions(2, 5, ((firstPatchOf25 to latestPatchOf25).toSet - 18).toList)
} else {
Nil
} ++ expandVersions(2, 6, 0 to latestPatchOf26)
val akka25Previous =
if (!(projectName.contains("typed") || projectName.contains("jackson"))) {
// 2.5.18 is the only release built with Scala 2.12.7, which due to
// https://github.com/scala/bug/issues/11207 produced many more
// static methods than expected. These are hard to filter out, so
// we exclude it here and rely on the checks for 2.5.17 and 2.5.19.
expandVersions(2, 5, ((firstPatchOf25 to latestPatchOf25).toSet - 18).toList)
} else {
Nil
}
val akka26Previous = expandVersions(2, 6, 0 to latestPatchOf26)
akka25Previous ++ akka26Previous
}
val akka25PromotedArtifacts = Set("akka-distributed-data")