Skip to content

Commit 3a115bd

Browse files
committed
Scala3doc: ensure all projects we're documenting are compiled
1 parent 1ab76c1 commit 3a115bd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

project/Build.scala

+8-8
Original file line numberDiff line numberDiff line change
@@ -1490,14 +1490,14 @@ object Build {
14901490
generateDocumentation(classDirectory.in(Compile).value.getAbsolutePath, "scala3doc", "self", "-p documentation")
14911491
}.value,
14921492
generateScala3Documentation := Def.taskDyn {
1493-
val dottyJars = Seq(
1494-
// All projects below will be used to generated documentation for Scala 3
1495-
classDirectory.in(`scala3-interfaces`).in(Compile).value,
1496-
classDirectory.in(`tasty-core`).in(Compile).value,
1497-
classDirectory.in(`scala3-library`).in(Compile).value,
1498-
// TODO this one fails to load using TASTY
1499-
// classDirectory.in(`stdlib-bootstrapped`).in(Compile).value,
1500-
)
1493+
val dottyJars: Seq[java.io.File] = Seq(
1494+
(`scala3-interfaces`/Compile/products).value,
1495+
(`tasty-core`/Compile/products).value,
1496+
(`scala3-library`/Compile/products).value,
1497+
// TODO we can't load stdlib from Tasty
1498+
// (`stdlib-bootstrapped`/Compile/products).value,
1499+
).flatten
1500+
15011501
val roots = dottyJars.map(_.toString).mkString(java.io.File.pathSeparator)
15021502

15031503
if (dottyJars.isEmpty) Def.task { streams.value.log.error("Dotty lib wasn't found") }

0 commit comments

Comments
 (0)