Skip to content

Commit

Permalink
Handle additional scala version identifiers in mill adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Sep 16, 2024
1 parent 893f10c commit fad6948
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ class Scala3CommunityBuildMillAdapter(
"Scala3Version",
"scala3Version",
"Scala_3",
"scala_3"
"scala_3",
"scala",
"Scala"
)

val Scala3Literal = raw""""3.\d+.\d+(?:-RC\d+)?"""".r
Expand Down Expand Up @@ -354,9 +356,9 @@ class Scala3CommunityBuildMillAdapter(
|import $file.MillCommunityBuild
|import $file.MillVersionCompat, MillVersionCompat.compat.{Task => MillCompatTask}
|// Main entry point for community build
|def runCommunityBuild(_evaluator: _root_.mill.eval.Evaluator, scalaVersion: _root_.scala.Predef.String, configJson: _root_.scala.Predef.String, targets: _root_.scala.Predef.String*) = _root_.mill.T.command {
|def runCommunityBuild(_evaluator: _root_.mill.eval.Evaluator, scalaVersion: _root_.scala.Predef.String, configJson: _root_.scala.Predef.String, projectDir: _root_.scala.Predef.String, targets: _root_.scala.Predef.String*) = _root_.mill.T.command {
| implicit val ctx = MillCommunityBuild.Ctx(this, scalaVersion, _evaluator, _root_.mill.T.log)
| MillCommunityBuild.runBuild(configJson, targets)
| MillCommunityBuild.runBuild(configJson, projectDir, targets)
|}
|""".stripMargin
val MillCommunityBuildCrossInject = """
Expand Down

0 comments on commit fad6948

Please sign in to comment.