Skip to content

Commit 01df59b

Browse files
committed
Fix resolution of Mima previous artifacts
1 parent ed98836 commit 01df59b

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

build.mill

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,9 +583,22 @@ trait MillStableScalaModule extends MillPublishScalaModule with Mima {
583583
Agg.from(
584584
Settings.mimaBaseVersions
585585
.filter(v => !skipPreviousVersions().contains(v))
586-
.map(version =>
587-
ivy"${pomSettings().organization}:${artifactId()}:${version}"
588-
)
586+
.map({ version =>
587+
val patchedSuffix = {
588+
val base = artifactSuffix()
589+
version match {
590+
case s"0.$minor.$_" if minor.toIntOption.exists(_ < 12) =>
591+
base match {
592+
case "_3" => "_2.13"
593+
case s"_3_$suffix" => s"_2.13_$suffix"
594+
case _ => base
595+
}
596+
case _ => base
597+
}
598+
}
599+
val patchedId = artifactName() + patchedSuffix
600+
ivy"${pomSettings().organization}:${patchedId}:${version}"
601+
})
589602
)
590603
}
591604

0 commit comments

Comments
 (0)