@@ -87,10 +87,9 @@ final case class MillCommunityProject(project: String, baseCommand: String,
87
87
88
88
final case class SbtCommunityProject (project : String , sbtTestCommand : String ,
89
89
sbtUpdateCommand : String , extraSbtArgs : List [String ] = Nil ,
90
- dependencies : List [CommunityProject ] = Nil ) extends CommunityProject
90
+ dependencies : List [CommunityProject ] = Nil , publishCommand : String = null ) extends CommunityProject
91
91
override val binaryName : String = " sbt"
92
92
private val baseCommand = s " ;clean ;set updateOptions in Global ~= (_.withLatestSnapshots(false)) ;++ $compilerVersion! "
93
- override val publishCommand = null
94
93
override val testCommand = s " $baseCommand$sbtTestCommand"
95
94
override val updateCommand = s " $baseCommand$sbtUpdateCommand"
96
95
@@ -126,6 +125,12 @@ object projects
126
125
dependencies = List (utest, sourcecode)
127
126
)
128
127
128
+ val ujson = MillCommunityProject (
129
+ project = " upickle" ,
130
+ baseCommand = s " ujson.jvm[ $compilerVersion] " ,
131
+ dependencies = List (scalatest, scalacheck, scalatestplusScalacheck)
132
+ )
133
+
129
134
val intent = SbtCommunityProject (
130
135
project = " intent" ,
131
136
sbtTestCommand = " test" ,
@@ -141,13 +146,23 @@ object projects
141
146
val scalacheck = SbtCommunityProject (
142
147
project = " scalacheck" ,
143
148
sbtTestCommand = " jvm/test" ,
144
- sbtUpdateCommand = " jvm/test:update"
149
+ sbtUpdateCommand = " jvm/test:update" ,
150
+ publishCommand = " ;set jvm/publishArtifact in (Compile, packageDoc) := false ;jvm/publishLocal"
145
151
)
146
152
147
153
val scalatest = SbtCommunityProject (
148
154
project = " scalatest" ,
149
155
sbtTestCommand = " ;scalacticDotty/clean;scalacticTestDotty/test;scalatestTestDotty/test" ,
150
- sbtUpdateCommand = " scalatest/update"
156
+ sbtUpdateCommand = " scalatest/update" ,
157
+ publishCommand = " ;scalacticDotty/publishLocal; scalatestDotty/publishLocal"
158
+ )
159
+
160
+ val scalatestplusScalacheck = SbtCommunityProject (
161
+ project = " scalatestplus-scalacheck" ,
162
+ sbtTestCommand = " scalatestPlusScalaCheckJVM/compile" , // TODO: compile only because tests are prone to java.lang.OutOfMemoryError: Metaspace
163
+ sbtUpdateCommand = " scalatestPlusScalaCheckJVM/update" ,
164
+ publishCommand = " scalatestPlusScalaCheckJVM/publishLocal" ,
165
+ dependencies = List (scalatest, scalacheck)
151
166
)
152
167
153
168
val scalaXml = SbtCommunityProject (
@@ -300,6 +315,7 @@ class CommunityBuildTest {
300
315
@ Test def algebra = projects.algebra.run()
301
316
@ Test def scalacheck = projects.scalacheck.run()
302
317
@ Test def scalatest = projects.scalatest.run()
318
+ @ Test def scalatestplusScalacheck = projects.scalatestplusScalacheck.run()
303
319
@ Test def scalaXml = projects.scalaXml.run()
304
320
@ Test def scopt = projects.scopt.run()
305
321
@ Test def scalap = projects.scalap.run()
@@ -311,6 +327,7 @@ class CommunityBuildTest {
311
327
@ Test def utest = projects.utest.run()
312
328
@ Test def sourcecode = projects.sourcecode.run()
313
329
@ Test def oslib = projects.oslib.run()
330
+ @ Test def ujson = projects.ujson.run()
314
331
// @Test def oslibWatch = projects.oslibWatch.run()
315
332
@ Test def stdLib213 = projects.stdLib213.run()
316
333
@ Test def shapeless = projects.shapeless.run()
0 commit comments