diff options
Diffstat (limited to 'build.sc')
-rw-r--r-- | build.sc | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,11 +1,13 @@ import mill._, scalalib._, scalafmt._, scalalib.publish._ object commando extends ScalaModule with ScalafmtModule with PublishModule { - //def scalaVersion = T.input { - //scala.sys.props.toMap.getOrElse("scala.version", "2.13.1").call() - //} - def scalaVersion = "2.13.1" + def scalaVersion = T.input { + sys.props.toMap.get("scala.version") match { + case Some(v) => v + case None => "2.13.1" + } + } object test extends Tests { def ivyDeps = Agg( |