Skip to content

Commit 0bf83cc

Browse files
authored
Accept mvn: prefix in --import cli option (#5006)
Pull request: #5006
1 parent 4b2c170 commit 0bf83cc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

runner/meta/src/mill/runner/meta/MillBuildRootModule.scala

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,11 @@ class MillBuildRootModule()(implicit
7777

7878
override def runMvnDeps = Task {
7979
val imports = cliImports()
80-
val ivyImports = imports.collect { case s"ivy:$rest" => rest }
80+
val ivyImports = imports.collect {
81+
// compat with older Mill-versions
82+
case s"ivy:$rest" => rest
83+
case s"mvn:$rest" => rest
84+
}
8185
Seq.from(
8286
MillIvy.processMillMvnDepsignature(ivyImports.toSet)
8387
.map(mill.scalalib.Dep.parse)

0 commit comments

Comments
 (0)