Skip to content

Commit

Permalink
Reset MiMA
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault committed Jan 20, 2025
1 parent 32816b2 commit 2246c2f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.sc
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,29 @@ trait VersionsMima extends Mima {
val current = os.proc("git", "describe", "--tags", "--match", "v*")
.call(cwd = T.workspace)
.out.trim()
val cutOff = coursier.core.Version("0.3.3")
os.proc("git", "tag", "-l")
.call(cwd = T.workspace)
.out.lines()
.filter(_ != current)
.filter(_.startsWith("v"))
.map(_.stripPrefix("v"))
.map(coursier.core.Version(_))
.filter(_ > cutOff)
.sorted
.map(_.repr)
}
// required if mimaPreviousVersions is empty
def mimaPreviousArtifacts = T {
val versions = mimaPreviousVersions().distinct
mill.api.Result.Success(
Agg.from(
versions.map(version =>
ivy"${pomSettings().organization}:${artifactId()}:$version"
)
)
)
}
}

trait VersionsPublishModule extends PublishModule with VersionsMima {
Expand Down

0 comments on commit 2246c2f

Please sign in to comment.