@@ -104,7 +104,8 @@ final case class SbtCommunityProject(
104
104
override val publishCommand = if sbtPublishCommand eq null then null else s " $baseCommand$sbtPublishCommand"
105
105
override val docCommand =
106
106
if sbtDocCommand eq null then null else
107
- s " $baseCommand;set every useScala3doc := true $sbtDocCommand"
107
+ val cmd = if sbtDocCommand.startsWith(" ;" ) then sbtDocCommand else s " ; $sbtDocCommand"
108
+ s " $baseCommand set every useScala3doc := true $cmd "
108
109
109
110
override val runCommandsArgs : List [String ] =
110
111
// Run the sbt command with the compiler version and sbt plugin set in the build
@@ -194,40 +195,51 @@ object projects:
194
195
lazy val intent = SbtCommunityProject (
195
196
project = " intent" ,
196
197
sbtTestCommand = " test" ,
198
+ sbtDocCommand = " doc"
197
199
)
198
200
199
201
lazy val algebra = SbtCommunityProject (
200
202
project = " algebra" ,
201
203
sbtTestCommand = " coreJVM/compile" ,
204
+ sbtDocCommand = " coreJVM/doc"
202
205
)
203
206
204
207
lazy val scalacheck = SbtCommunityProject (
205
208
project = " scalacheck" ,
206
209
sbtTestCommand = " jvm/test;js/test" ,
207
- sbtPublishCommand = " jvm/publishLocal;js/publishLocal"
210
+ sbtPublishCommand = " jvm/publishLocal;js/publishLocal" ,
211
+ sbtDocCommand = " jvm/doc"
208
212
)
209
213
210
214
lazy val scalatest = SbtCommunityProject (
211
215
project = " scalatest" ,
212
216
sbtTestCommand = " scalacticDotty/clean;scalacticTestDotty/test; scalatestTestDotty/test" ,
213
- sbtPublishCommand = " scalacticDotty/publishLocal; scalatestDotty/publishLocal"
217
+ sbtPublishCommand = " scalacticDotty/publishLocal; scalatestDotty/publishLocal" ,
218
+ sbtDocCommand = " ;scalacticDotty/clean ;scalacticDotty/doc; scalatestDotty/doc"
219
+ // cannot take signature of (test: org.scalatest.concurrent.ConductorFixture#OneArgTest):
220
+ // org.scalatest.Outcome
221
+ // Problem parsing scalatest.dotty/target/scala-3.0.0-M2/src_managed/main/org/scalatest/concurrent/ConductorFixture.scala:[602..624..3843], documentation may not be generated.
222
+ // dotty.tools.dotc.core.MissingType:
214
223
)
215
224
216
225
lazy val scalatestplusScalacheck = SbtCommunityProject (
217
226
project = " scalatestplus-scalacheck" ,
218
227
sbtTestCommand = " scalatestPlusScalaCheckJVM/test" ,
219
228
sbtPublishCommand = " scalatestPlusScalaCheckJVM/publishLocal" ,
229
+ sbtDocCommand = " scalatestPlusScalaCheckJVM/doc" ,
220
230
dependencies = List (scalatest, scalacheck)
221
231
)
222
232
223
233
lazy val scalaXml = SbtCommunityProject (
224
234
project = " scala-xml" ,
225
235
sbtTestCommand = " xml/test" ,
236
+ sbtDocCommand = " xml/doc"
226
237
)
227
238
228
239
lazy val scalap = SbtCommunityProject (
229
240
project = " scalap" ,
230
241
sbtTestCommand = " scalap/compile" ,
242
+ sbtDocCommand = " scalap/doc"
231
243
)
232
244
233
245
lazy val betterfiles = SbtCommunityProject (
@@ -239,34 +251,42 @@ object projects:
239
251
lazy val ScalaPB = SbtCommunityProject (
240
252
project = " ScalaPB" ,
241
253
sbtTestCommand = " dotty-community-build/compile" ,
254
+ sbtDocCommand = " dotty-community-build/doc"
242
255
)
243
256
244
257
lazy val minitest = SbtCommunityProject (
245
258
project = " minitest" ,
246
259
sbtTestCommand = " test" ,
260
+ sbtDocCommand = " dotty-community-build/doc" ,
247
261
dependencies = List (scalacheck)
248
262
)
249
263
250
264
lazy val fastparse = SbtCommunityProject (
251
265
project = " fastparse" ,
252
266
sbtTestCommand = " dotty-community-build/compile;dotty-community-build/test:compile" ,
267
+ // Problem parsing perftests/bench2/src/perftests/PythonParse.scala:[0..18..694]
268
+ // sbtDocCommand = "dotty-community-build/doc"
253
269
)
254
270
255
271
lazy val stdLib213 = SbtCommunityProject (
256
272
project = " stdLib213" ,
257
273
extraSbtArgs = List (" -Dscala.build.compileWithDotty=true" ),
258
274
sbtTestCommand = """ library/compile""" ,
259
275
sbtPublishCommand = """ set publishArtifact in (library, Compile, packageDoc) := false ;library/publishLocal""" ,
276
+ // sbtDocCommand = "library/doc" // Does no compile? No idea :/
260
277
)
261
278
279
+
262
280
lazy val shapeless = SbtCommunityProject (
263
281
project = " shapeless" ,
264
282
sbtTestCommand = " test" ,
283
+ sbtDocCommand = " doc"
265
284
)
266
285
267
286
lazy val xmlInterpolator = SbtCommunityProject (
268
287
project = " xml-interpolator" ,
269
288
sbtTestCommand = " test" ,
289
+ sbtDocCommand = " doc" , // Again we've got problem with extensions
270
290
)
271
291
272
292
lazy val effpi = SbtCommunityProject (
@@ -282,6 +302,7 @@ object projects:
282
302
// sbtTestCommand = "set ThisBuild / useEffpiPlugin := false; effpi/test:compile; plugin/test:compile; benchmarks/test:compile; examples/test:compile; pluginBenchmarks/test:compile",
283
303
284
304
sbtTestCommand = " set ThisBuild / useEffpiPlugin := false; effpi/test:compile; benchmarks/test:compile; examples/test:compile; pluginBenchmarks/test:compile" ,
305
+ sbtDocCommand = " set ThisBuild / useEffpiPlugin := false; effpi/doc; benchmarks/doc; examples/doc; pluginBenchmarks/doc" ,
285
306
)
286
307
287
308
// TODO @odersky? It got broken by #5458
@@ -293,75 +314,89 @@ object projects:
293
314
lazy val sconfig = SbtCommunityProject (
294
315
project = " sconfig" ,
295
316
sbtTestCommand = " sconfigJVM/test" ,
317
+ sbtDocCommand = " sconfigJVM/doc" ,
296
318
)
297
319
298
320
lazy val zio = SbtCommunityProject (
299
321
project = " zio" ,
300
322
sbtTestCommand = " testJVMDotty" ,
323
+ // sbtDocCommand = "coreJVM/doc",
324
+ // Fails on tasty unpickling https://github.com/lampepfl/dotty/issues/10499
301
325
)
302
326
303
327
lazy val munit = SbtCommunityProject (
304
328
project = " munit" ,
305
329
sbtTestCommand = " testsJVM/test" ,
330
+ sbtDocCommand = " munitJVM/doc" ,
306
331
)
307
332
308
333
lazy val scodecBits = SbtCommunityProject (
309
334
project = " scodec-bits" ,
310
335
sbtTestCommand = " coreJVM/test" ,
311
336
sbtPublishCommand = " coreJVM/publishLocal" ,
337
+ sbtDocCommand = " coreJVM/doc" ,
312
338
dependencies = List (scalatest, scalacheck, scalatestplusScalacheck)
313
339
)
314
340
315
341
lazy val scodec = SbtCommunityProject (
316
342
project = " scodec" ,
317
343
sbtTestCommand = " unitTests/test" ,
344
+ // Adds <empty> package
345
+ sbtDocCommand = " coreJVM/doc" ,
318
346
dependencies = List (scalatest, scalacheck, scalatestplusScalacheck, scodecBits)
319
347
)
320
348
321
349
lazy val scalaParserCombinators = SbtCommunityProject (
322
350
project = " scala-parser-combinators" ,
323
351
sbtTestCommand = " parserCombinatorsJVM/test" ,
352
+ sbtDocCommand = " parserCombinatorsJVM/doc" ,
324
353
)
325
354
326
355
lazy val dottyCpsAsync = SbtCommunityProject (
327
356
project = " dotty-cps-async" ,
328
357
sbtTestCommand = " test" ,
358
+ sbtDocCommand = " doc" ,
329
359
)
330
360
331
361
lazy val scalaz = SbtCommunityProject (
332
362
project = " scalaz" ,
333
363
sbtTestCommand = " rootJVM/test" ,
334
- // has doc/sources set to Nil
364
+ sbtDocCommand = " rootJVM/doc " ,
335
365
dependencies = List (scalacheck)
336
366
)
337
367
338
368
lazy val endpoints4s = SbtCommunityProject (
339
369
project = " endpoints4s" ,
340
- sbtTestCommand = " json-schemaJVM/compile;algebraJVM/compile;openapiJVM/compile;http4s-server/compile;http4s-client/compile;play-server/compile;play-client/compile;akka-http-server/compile;akka-http-client/compile"
370
+ sbtTestCommand = " json-schemaJVM/compile;algebraJVM/compile;openapiJVM/compile;http4s-server/compile;http4s-client/compile;play-server/compile;play-client/compile;akka-http-server/compile;akka-http-client/compile" ,
371
+ sbtDocCommand = " ;json-schemaJVM/doc ;algebraJVM/doc; openapiJVM/doc; http4s-server/doc ;http4s-client/doc ;play-server/doc ;play-client/doc ;akka-http-server/doc ;akka-http-client/doc" ,
341
372
)
342
373
343
374
lazy val catsEffect2 = SbtCommunityProject (
344
375
project = " cats-effect-2" ,
345
376
sbtTestCommand = " test" ,
377
+ sbtDocCommand = " ;coreJVM/doc ;lawsJVM/doc" ,
346
378
forceUpgradeSbtScalajsPlugin = true
347
379
)
348
380
349
381
lazy val catsEffect3 = SbtCommunityProject (
350
382
project = " cats-effect-3" ,
351
- sbtTestCommand = " testIfRelevant"
383
+ sbtTestCommand = " testIfRelevant" ,
384
+ // The problem is that testIfRelevant does not compile and project does not compile
385
+ // sbtDocCommand = ";coreJVM/doc ;lawsJVM/doc ;kernelJVM/doc",
352
386
)
353
387
354
388
lazy val scalaParallelCollections = SbtCommunityProject (
355
389
project = " scala-parallel-collections" ,
356
390
sbtTestCommand = " test" ,
391
+ sbtDocCommand = " doc" ,
357
392
dependencies = List (scalacheck)
358
393
)
359
394
360
395
lazy val scalaCollectionCompat = SbtCommunityProject (
361
396
project = " scala-collection-compat" ,
362
397
sbtTestCommand = " compat30/test" ,
363
398
)
364
-
399
+
365
400
val projectMap = Map (
366
401
" utest" -> utest,
367
402
" sourcecode" -> sourcecode,
@@ -381,9 +416,7 @@ object projects:
381
416
" scalatest" -> scalatest,
382
417
" scalatestplusScalacheck" -> scalatestplusScalacheck,
383
418
" scalaXml" -> scalaXml,
384
- " scopt" -> scopt,
385
419
" scalap" -> scalap,
386
- " squants" -> squants,
387
420
" betterfiles" -> betterfiles,
388
421
" ScalaPB" -> ScalaPB ,
389
422
" minitest" -> minitest,
@@ -403,7 +436,8 @@ object projects:
403
436
" endpoints4s" -> endpoints4s,
404
437
" catsEffect2" -> catsEffect2,
405
438
" catsEffect3" -> catsEffect3,
406
- " scalaCollectionCompat" -> scalaCollectionCompat
439
+ " scalaCollectionCompat" -> scalaCollectionCompat,
440
+ " scalaParallelCollections" -> scalaParallelCollections,
407
441
)
408
442
def apply (key : String ) = projectMap(key)
409
443
0 commit comments