@@ -31,7 +31,7 @@ def exec(projectDir: Path, binary: String, arguments: String*): Int =
31
31
exitCode
32
32
33
33
34
- sealed trait CommunityProject
34
+ sealed trait CommunityProject :
35
35
private var published = false
36
36
37
37
val project : String
@@ -77,17 +77,23 @@ sealed trait CommunityProject
77
77
published = true
78
78
end CommunityProject
79
79
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 :
82
84
override val binaryName : String = " ./mill"
83
85
override val updateCommand = s " $baseCommand.compileClasspath "
84
86
override val testCommand = s " $baseCommand.test "
85
87
override val publishCommand = s " $baseCommand.publishLocal "
86
88
override val runCommandsArgs = List (" -i" , " -D" , s " dottyVersion= $compilerVersion" )
87
89
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 :
91
97
override val binaryName : String = " sbt"
92
98
private val baseCommand = s " ;clean ;set updateOptions in Global ~= (_.withLatestSnapshots(false)) ;++ $compilerVersion! "
93
99
override val testCommand = s " $baseCommand$sbtTestCommand"
@@ -103,7 +109,7 @@ final case class SbtCommunityProject(project: String, sbtTestCommand: String,
103
109
" -sbt-version" , " 1.3.6" ,
104
110
s " --addPluginSbtFile= $sbtPluginFilePath" )
105
111
106
- object projects
112
+ object projects :
107
113
lazy val utest = MillCommunityProject (
108
114
project = " utest" ,
109
115
baseCommand = s " utest.jvm[ $compilerVersion] " ,
@@ -265,7 +271,7 @@ object projects
265
271
end projects
266
272
267
273
@ Category (Array (classOf [TestCategory ]))
268
- class CommunityBuildTest {
274
+ class CommunityBuildTest :
269
275
given CommunityBuildTest = this
270
276
271
277
/** Build the given project with the published local compiler and sbt plugin.
@@ -335,7 +341,7 @@ class CommunityBuildTest {
335
341
@ Test def xmlInterpolator = projects.xmlInterpolator.run()
336
342
@ Test def effpi = projects.effpi.run()
337
343
@ Test def sconfig = projects.sconfig.run()
338
- }
344
+ end CommunityBuildTest
339
345
340
346
class TestCategory
341
347
class UpdateCategory
0 commit comments