Skip to content

Commit

Permalink
Fix resolution of Mima previous artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
bishabosha committed Sep 20, 2024
1 parent ed98836 commit 01df59b
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions build.mill
Original file line number Diff line number Diff line change
Expand Up @@ -583,9 +583,22 @@ trait MillStableScalaModule extends MillPublishScalaModule with Mima {
Agg.from(
Settings.mimaBaseVersions
.filter(v => !skipPreviousVersions().contains(v))
.map(version =>
ivy"${pomSettings().organization}:${artifactId()}:${version}"
)
.map({ version =>
val patchedSuffix = {
val base = artifactSuffix()
version match {
case s"0.$minor.$_" if minor.toIntOption.exists(_ < 12) =>
base match {
case "_3" => "_2.13"
case s"_3_$suffix" => s"_2.13_$suffix"
case _ => base
}
case _ => base
}
}
val patchedId = artifactName() + patchedSuffix
ivy"${pomSettings().organization}:${patchedId}:${version}"
})
)
}

Expand Down

0 comments on commit 01df59b

Please sign in to comment.