diff --git a/build.mill b/build.mill index 3c0ca27a766..8a6062fc25f 100644 --- a/build.mill +++ b/build.mill @@ -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}" + }) ) }