Merge pull request #26672 from akka/wip-latestPatchOf25-2.5.22-patriknw
update latestPatchOf25 to 2.5.22
This commit is contained in:
commit
9a19a73f9a
1 changed files with 9 additions and 13 deletions
|
|
@ -11,7 +11,7 @@ import com.typesafe.tools.mima.plugin.MimaPlugin.autoImport._
|
||||||
|
|
||||||
object MiMa extends AutoPlugin {
|
object MiMa extends AutoPlugin {
|
||||||
|
|
||||||
private val latestPatchOf25 = 21
|
private val latestPatchOf25 = 22
|
||||||
private val latestPatchOf24 = 20
|
private val latestPatchOf24 = 20
|
||||||
|
|
||||||
override def requires = MimaPlugin
|
override def requires = MimaPlugin
|
||||||
|
|
@ -20,7 +20,10 @@ object MiMa extends AutoPlugin {
|
||||||
override val projectSettings = Seq(
|
override val projectSettings = Seq(
|
||||||
mimaPreviousArtifacts := akkaPreviousArtifacts(name.value, organization.value, scalaBinaryVersion.value))
|
mimaPreviousArtifacts := akkaPreviousArtifacts(name.value, organization.value, scalaBinaryVersion.value))
|
||||||
|
|
||||||
def akkaPreviousArtifacts(projectName: String, organization: String, scalaBinaryVersion: String): Set[sbt.ModuleID] = {
|
def akkaPreviousArtifacts(
|
||||||
|
projectName: String,
|
||||||
|
organization: String,
|
||||||
|
scalaBinaryVersion: String): Set[sbt.ModuleID] = {
|
||||||
val versions: Seq[String] = {
|
val versions: Seq[String] = {
|
||||||
val akka24NoStreamVersions = Seq("2.4.0", "2.4.1")
|
val akka24NoStreamVersions = Seq("2.4.0", "2.4.1")
|
||||||
val akka25Versions = (0 to latestPatchOf25).map(patch => s"2.5.$patch")
|
val akka25Versions = (0 to latestPatchOf25).map(patch => s"2.5.$patch")
|
||||||
|
|
@ -31,14 +34,9 @@ object MiMa extends AutoPlugin {
|
||||||
.map("2.4." + _)
|
.map("2.4." + _)
|
||||||
.filterNot(_ == "2.4.15") // 2.4.15 was released from the wrong branch and never announced
|
.filterNot(_ == "2.4.15") // 2.4.15 was released from the wrong branch and never announced
|
||||||
|
|
||||||
val akka242NewArtifacts = Seq(
|
val akka242NewArtifacts = Seq("akka-stream", "akka-stream-testkit")
|
||||||
"akka-stream",
|
val akka250NewArtifacts = Seq("akka-persistence-query")
|
||||||
"akka-stream-testkit")
|
val akka2519NewArtifacts = Seq("akka-discovery")
|
||||||
val akka250NewArtifacts = Seq(
|
|
||||||
"akka-persistence-query")
|
|
||||||
val akka2519NewArtifacts = Seq(
|
|
||||||
"akka-discovery"
|
|
||||||
)
|
|
||||||
|
|
||||||
scalaBinaryVersion match {
|
scalaBinaryVersion match {
|
||||||
case "2.11" =>
|
case "2.11" =>
|
||||||
|
|
@ -58,15 +56,13 @@ object MiMa extends AutoPlugin {
|
||||||
else
|
else
|
||||||
akka24WithScala212 ++ akka25Versions
|
akka24WithScala212 ++ akka25Versions
|
||||||
|
|
||||||
|
|
||||||
case v if v.startsWith("2.13") =>
|
case v if v.startsWith("2.13") =>
|
||||||
// no Akka released for 2.13 yet, no jars to check BC against
|
// no Akka released for 2.13 yet, no jars to check BC against
|
||||||
Seq.empty
|
Seq.empty
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val akka25PromotedArtifacts = Set(
|
val akka25PromotedArtifacts = Set("akka-distributed-data")
|
||||||
"akka-distributed-data")
|
|
||||||
|
|
||||||
// check against all binary compatible artifacts
|
// check against all binary compatible artifacts
|
||||||
versions.map { v =>
|
versions.map { v =>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue