diff --git a/build.mill b/build.mill index 02b4f126b8a..4a4a0e7305a 100644 --- a/build.mill +++ b/build.mill @@ -256,7 +256,11 @@ object Deps { } } -def millVersion: T[String] = Task { VcsVersion.vcsState().format() } +def millVersion: T[String] = Task { + if (Task.env.contains("MILL_STABLE_VERSION")) VcsVersion.calcVcsState(Task.log).format() + else "DEV" +} + def millLastTag: T[String] = Task { VcsVersion.vcsState().lastTag.getOrElse(