Skip to content

Commit 0d8d6b7

Browse files
committed
Scala3doc: remove generateScala3StdlibDocumentation task
A separate task is no longer necessary.
1 parent 3071a53 commit 0d8d6b7

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

project/Build.scala

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,6 @@ object Build {
12161216
val generateSelfDocumentation = taskKey[Unit]("Generate example documentation")
12171217
// Note: the two tasks below should be one, but a bug in Tasty prevents that
12181218
val generateScala3Documentation = inputKey[Unit]("Generate documentation for dotty lib")
1219-
val generateScala3StdlibDocumentation = taskKey[Unit]("Generate documentation for Scala3 standard library")
12201219
val generateTestcasesDocumentation = taskKey[Unit]("Generate documentation for testcases, usefull for debugging tests")
12211220
lazy val `scala3doc` = project.in(file("scala3doc")).asScala3doc
12221221
lazy val `scala3doc-testcases` = project.in(file("scala3doc-testcases")).asScala3docTestcases
@@ -1566,9 +1565,9 @@ object Build {
15661565
val majorVersion = (scalaBinaryVersion in LocalProject("scala3-library-bootstrapped")).value
15671566

15681567
val dottyJars: Seq[java.io.File] = Seq(
1568+
(`stdlib-bootstrapped`/Compile/products).value,
15691569
(`scala3-interfaces`/Compile/products).value,
15701570
(`tasty-core-bootstrapped`/Compile/products).value,
1571-
(`scala3-library-bootstrapped`/Compile/products).value,
15721571
).flatten
15731572

15741573
val roots = joinProducts(dottyJars)
@@ -1584,23 +1583,6 @@ object Build {
15841583
"-siteroot scala3doc/scala3-docs -project-logo scala3doc/scala3-docs/logo.svg"))
15851584
}.evaluated,
15861585

1587-
1588-
generateScala3StdlibDocumentation:= Def.taskDyn {
1589-
val dottyJars: Seq[java.io.File] = Seq(
1590-
(`stdlib-bootstrapped`/Compile/products).value,
1591-
(`scala3-interfaces`/Compile/products).value,
1592-
(`tasty-core-bootstrapped`/Compile/products).value,
1593-
).flatten
1594-
1595-
val roots = joinProducts(dottyJars)
1596-
1597-
if (dottyJars.isEmpty) Def.task { streams.value.log.error("Dotty lib wasn't found") }
1598-
else generateDocumentation(
1599-
roots, "Scala 3", "scala3doc/output/scala3-stdlib", "maser",
1600-
"-siteroot scala3doc/scala3-docs -comment-syntax wiki -project-logo scala3doc/scala3-docs/logo.svg "
1601-
)
1602-
}.value,
1603-
16041586
generateTestcasesDocumentation := Def.taskDyn {
16051587
generateDocumentation(Build.testcasesOutputDir.in(Test).value, "Scala3doc testcases", "scala3doc/output/testcases", "master")
16061588
}.value,

0 commit comments

Comments
 (0)