@@ -31,7 +31,7 @@ def exec(projectDir: Path, binary: String, arguments: String*): Int =
3131 exitCode
3232
3333
34- sealed trait CommunityProject
34+ sealed trait CommunityProject :
3535 private var published = false
3636
3737 val project : String
@@ -77,17 +77,23 @@ sealed trait CommunityProject
7777 published = true
7878end CommunityProject
7979
80- final case class MillCommunityProject (project : String , baseCommand : String ,
81- dependencies : List [CommunityProject ] = Nil ) extends CommunityProject
80+ final case class MillCommunityProject (
81+ project : String ,
82+ baseCommand : String ,
83+ dependencies : List [CommunityProject ] = Nil ) extends CommunityProject :
8284 override val binaryName : String = " ./mill"
8385 override val updateCommand = s " $baseCommand.compileClasspath "
8486 override val testCommand = s " $baseCommand.test "
8587 override val publishCommand = s " $baseCommand.publishLocal "
8688 override val runCommandsArgs = List (" -i" , " -D" , s " dottyVersion= $compilerVersion" )
8789
88- final case class SbtCommunityProject (project : String , sbtTestCommand : String ,
89- sbtUpdateCommand : String , extraSbtArgs : List [String ] = Nil ,
90- dependencies : List [CommunityProject ] = Nil , sbtPublishCommand : String = null ) extends CommunityProject
90+ final case class SbtCommunityProject (
91+ project : String ,
92+ sbtTestCommand : String ,
93+ sbtUpdateCommand : String ,
94+ extraSbtArgs : List [String ] = Nil ,
95+ dependencies : List [CommunityProject ] = Nil ,
96+ sbtPublishCommand : String = null ) extends CommunityProject :
9197 override val binaryName : String = " sbt"
9298 private val baseCommand = s " ;clean ;set updateOptions in Global ~= (_.withLatestSnapshots(false)) ;++ $compilerVersion! "
9399 override val testCommand = s " $baseCommand$sbtTestCommand"
@@ -103,7 +109,7 @@ final case class SbtCommunityProject(project: String, sbtTestCommand: String,
103109 " -sbt-version" , " 1.3.6" ,
104110 s " --addPluginSbtFile= $sbtPluginFilePath" )
105111
106- object projects
112+ object projects :
107113 lazy val utest = MillCommunityProject (
108114 project = " utest" ,
109115 baseCommand = s " utest.jvm[ $compilerVersion] " ,
@@ -271,7 +277,7 @@ object projects
271277end projects
272278
273279@ Category (Array (classOf [TestCategory ]))
274- class CommunityBuildTest {
280+ class CommunityBuildTest :
275281 given CommunityBuildTest = this
276282
277283 /** Build the given project with the published local compiler and sbt plugin.
@@ -342,7 +348,7 @@ class CommunityBuildTest {
342348 @ Test def effpi = projects.effpi.run()
343349 @ Test def sconfig = projects.sconfig.run()
344350 @ Test def zio = projects.zio.run()
345- }
351+ end CommunityBuildTest
346352
347353class TestCategory
348354class UpdateCategory
0 commit comments