@@ -125,7 +125,8 @@ final case class SbtCommunityProject(
125
125
override val publishCommand = if sbtPublishCommand eq null then null else s " $baseCommand$sbtPublishCommand"
126
126
override val docCommand =
127
127
if sbtDocCommand eq null then null else
128
- s " $baseCommand;set every useScala3doc := true $sbtDocCommand"
128
+ val cmd = if sbtDocCommand.startsWith(" ;" ) then sbtDocCommand else s " ; $sbtDocCommand"
129
+ s " $baseCommand set every useScala3doc := true $cmd "
129
130
130
131
override val runCommandsArgs : List [String ] =
131
132
// Run the sbt command with the compiler version and sbt plugin set in the build
@@ -212,40 +213,51 @@ object projects:
212
213
lazy val intent = SbtCommunityProject (
213
214
project = " intent" ,
214
215
sbtTestCommand = " test" ,
216
+ sbtDocCommand = " doc"
215
217
)
216
218
217
219
lazy val algebra = SbtCommunityProject (
218
220
project = " algebra" ,
219
221
sbtTestCommand = " coreJVM/compile" ,
222
+ sbtDocCommand = " coreJVM/doc"
220
223
)
221
224
222
225
lazy val scalacheck = SbtCommunityProject (
223
226
project = " scalacheck" ,
224
227
sbtTestCommand = " jvm/test;js/test" ,
225
- sbtPublishCommand = " jvm/publishLocal;js/publishLocal"
228
+ sbtPublishCommand = " jvm/publishLocal;js/publishLocal" ,
229
+ sbtDocCommand = " jvm/doc"
226
230
)
227
231
228
232
lazy val scalatest = SbtCommunityProject (
229
233
project = " scalatest" ,
230
234
sbtTestCommand = " scalacticDotty/clean;scalacticTestDotty/test; scalatestTestDotty/test" ,
231
- sbtPublishCommand = " scalacticDotty/publishLocal; scalatestDotty/publishLocal"
235
+ sbtPublishCommand = " scalacticDotty/publishLocal; scalatestDotty/publishLocal" ,
236
+ sbtDocCommand = " ;scalacticDotty/clean ;scalacticDotty/doc; scalatestDotty/doc"
237
+ // cannot take signature of (test: org.scalatest.concurrent.ConductorFixture#OneArgTest):
238
+ // org.scalatest.Outcome
239
+ // 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.
240
+ // dotty.tools.dotc.core.MissingType:
232
241
)
233
242
234
243
lazy val scalatestplusScalacheck = SbtCommunityProject (
235
244
project = " scalatestplus-scalacheck" ,
236
245
sbtTestCommand = " scalatestPlusScalaCheckJVM/test" ,
237
246
sbtPublishCommand = " scalatestPlusScalaCheckJVM/publishLocal" ,
247
+ sbtDocCommand = " scalatestPlusScalaCheckJVM/doc" ,
238
248
dependencies = List (scalatest, scalacheck)
239
249
)
240
250
241
251
lazy val scalaXml = SbtCommunityProject (
242
252
project = " scala-xml" ,
243
253
sbtTestCommand = " xml/test" ,
254
+ sbtDocCommand = " xml/doc"
244
255
)
245
256
246
257
lazy val scalap = SbtCommunityProject (
247
258
project = " scalap" ,
248
259
sbtTestCommand = " scalap/compile" ,
260
+ sbtDocCommand = " scalap/doc"
249
261
)
250
262
251
263
lazy val betterfiles = SbtCommunityProject (
@@ -257,34 +269,42 @@ object projects:
257
269
lazy val ScalaPB = SbtCommunityProject (
258
270
project = " ScalaPB" ,
259
271
sbtTestCommand = " dotty-community-build/compile" ,
272
+ sbtDocCommand = " dotty-community-build/doc"
260
273
)
261
274
262
275
lazy val minitest = SbtCommunityProject (
263
276
project = " minitest" ,
264
277
sbtTestCommand = " test" ,
278
+ sbtDocCommand = " dotty-community-build/doc" ,
265
279
dependencies = List (scalacheck)
266
280
)
267
281
268
282
lazy val fastparse = SbtCommunityProject (
269
283
project = " fastparse" ,
270
284
sbtTestCommand = " dotty-community-build/compile;dotty-community-build/test:compile" ,
285
+ // Problem parsing perftests/bench2/src/perftests/PythonParse.scala:[0..18..694]
286
+ // sbtDocCommand = "dotty-community-build/doc"
271
287
)
272
288
273
289
lazy val stdLib213 = SbtCommunityProject (
274
290
project = " stdLib213" ,
275
291
extraSbtArgs = List (" -Dscala.build.compileWithDotty=true" ),
276
292
sbtTestCommand = """ library/compile""" ,
277
293
sbtPublishCommand = """ set publishArtifact in (library, Compile, packageDoc) := false ;library/publishLocal""" ,
294
+ // sbtDocCommand = "library/doc" // Does no compile? No idea :/
278
295
)
279
296
297
+
280
298
lazy val shapeless = SbtCommunityProject (
281
299
project = " shapeless" ,
282
300
sbtTestCommand = " test" ,
301
+ sbtDocCommand = " doc"
283
302
)
284
303
285
304
lazy val xmlInterpolator = SbtCommunityProject (
286
305
project = " xml-interpolator" ,
287
306
sbtTestCommand = " test" ,
307
+ sbtDocCommand = " doc" , // Again we've got problem with extensions
288
308
)
289
309
290
310
lazy val effpi = SbtCommunityProject (
@@ -300,6 +320,7 @@ object projects:
300
320
// sbtTestCommand = "set ThisBuild / useEffpiPlugin := false; effpi/test:compile; plugin/test:compile; benchmarks/test:compile; examples/test:compile; pluginBenchmarks/test:compile",
301
321
302
322
sbtTestCommand = " set ThisBuild / useEffpiPlugin := false; effpi/test:compile; benchmarks/test:compile; examples/test:compile; pluginBenchmarks/test:compile" ,
323
+ sbtDocCommand = " set ThisBuild / useEffpiPlugin := false; effpi/doc; benchmarks/doc; examples/doc; pluginBenchmarks/doc" ,
303
324
)
304
325
305
326
// TODO @odersky? It got broken by #5458
@@ -311,70 +332,81 @@ object projects:
311
332
lazy val sconfig = SbtCommunityProject (
312
333
project = " sconfig" ,
313
334
sbtTestCommand = " sconfigJVM/test" ,
335
+ sbtDocCommand = " sconfigJVM/doc" ,
314
336
)
315
337
316
338
lazy val zio = SbtCommunityProject (
317
339
project = " zio" ,
318
340
sbtTestCommand = " testJVMDotty" ,
341
+ // sbtDocCommand = "coreJVM/doc",
342
+ // Fails on tasty unpickling https://github.com/lampepfl/dotty/issues/10499
319
343
)
320
344
321
345
lazy val munit = SbtCommunityProject (
322
- project = " munit" ,
323
- sbtTestCommand = " testsJVM/test;testsJS/test;" ,
324
- // Hardcode the version to avoid having to deal with something set by sbt-dynver
325
- sbtPublishCommand = s """ set every version := " ${Versions .munit}"; munitJVM/publishLocal; munitJS/publishLocal; munitScalacheckJVM/publishLocal; munitScalacheckJS/publishLocal; junit/publishLocal """ ,
326
- dependencies = List (scalacheck)
346
+ project = " munit" ,
347
+ sbtTestCommand = " testsJVM/test" ,
348
+ sbtDocCommand = " munitJVM/doc" ,
327
349
)
328
350
329
351
lazy val scodecBits = SbtCommunityProject (
330
352
project = " scodec-bits" ,
331
353
sbtTestCommand = " coreJVM/test;coreJS/test" ,
332
354
// Hardcode the version to avoid having to deal with something set by sbt-git
333
355
sbtPublishCommand = s """ set every version := " ${Versions .scodecBits}"; coreJVM/publishLocal;coreJS/publishLocal """ ,
356
+ sbtDocCommand = " coreJVM/doc" ,
334
357
dependencies = List (munit)
335
358
)
336
359
337
360
lazy val scodec = SbtCommunityProject (
338
361
project = " scodec" ,
339
362
sbtTestCommand = " unitTests/test" ,
363
+ // Adds <empty> package
364
+ sbtDocCommand = " coreJVM/doc" ,
340
365
dependencies = List (munit, scodecBits)
341
366
)
342
367
343
368
lazy val scalaParserCombinators = SbtCommunityProject (
344
369
project = " scala-parser-combinators" ,
345
370
sbtTestCommand = " parserCombinatorsJVM/test" ,
371
+ sbtDocCommand = " parserCombinatorsJVM/doc" ,
346
372
)
347
373
348
374
lazy val dottyCpsAsync = SbtCommunityProject (
349
375
project = " dotty-cps-async" ,
350
376
sbtTestCommand = " test" ,
377
+ sbtDocCommand = " doc" ,
351
378
)
352
379
353
380
lazy val scalaz = SbtCommunityProject (
354
381
project = " scalaz" ,
355
382
sbtTestCommand = " rootJVM/test" ,
356
- // has doc/sources set to Nil
383
+ sbtDocCommand = " rootJVM/doc " ,
357
384
dependencies = List (scalacheck)
358
385
)
359
386
360
387
lazy val endpoints4s = SbtCommunityProject (
361
388
project = " endpoints4s" ,
362
- 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"
389
+ 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" ,
390
+ 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" ,
363
391
)
364
392
365
393
lazy val catsEffect2 = SbtCommunityProject (
366
394
project = " cats-effect-2" ,
367
- sbtTestCommand = " test"
395
+ sbtTestCommand = " test" ,
396
+ sbtDocCommand = " ;coreJVM/doc ;lawsJVM/doc" ,
368
397
)
369
398
370
399
lazy val catsEffect3 = SbtCommunityProject (
371
400
project = " cats-effect-3" ,
372
- sbtTestCommand = " testIfRelevant"
401
+ sbtTestCommand = " testIfRelevant" ,
402
+ // The problem is that testIfRelevant does not compile and project does not compile
403
+ // sbtDocCommand = ";coreJVM/doc ;lawsJVM/doc ;kernelJVM/doc",
373
404
)
374
405
375
406
lazy val scalaParallelCollections = SbtCommunityProject (
376
407
project = " scala-parallel-collections" ,
377
408
sbtTestCommand = " test" ,
409
+ sbtDocCommand = " doc" ,
378
410
dependencies = List (scalacheck)
379
411
)
380
412
@@ -402,9 +434,7 @@ object projects:
402
434
" scalatest" -> scalatest,
403
435
" scalatestplusScalacheck" -> scalatestplusScalacheck,
404
436
" scalaXml" -> scalaXml,
405
- " scopt" -> scopt,
406
437
" scalap" -> scalap,
407
- " squants" -> squants,
408
438
" betterfiles" -> betterfiles,
409
439
" ScalaPB" -> ScalaPB ,
410
440
" minitest" -> minitest,
@@ -424,7 +454,8 @@ object projects:
424
454
" endpoints4s" -> endpoints4s,
425
455
" catsEffect2" -> catsEffect2,
426
456
" catsEffect3" -> catsEffect3,
427
- " scalaCollectionCompat" -> scalaCollectionCompat
457
+ " scalaCollectionCompat" -> scalaCollectionCompat,
458
+ " scalaParallelCollections" -> scalaParallelCollections,
428
459
)
429
460
def apply (key : String ) = projectMap(key)
430
461
0 commit comments