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

@ -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")