Commit 5923f77
committed
Skip doc generation for nonbootstrapped projects
fix #25704
Previously, running `sbt publishLocal` causes scaladoc generation for `scala-library-nonbootstrapped` and `scala3-library-nonbootstrapped`.
These two projects don't explicitly set `Compile / packageDoc / publishArtifact := false`, and therefore sbt defaults to generate doc jars on `publishLocal`.
However, IIUC, there's no point of generating scaladoc for nonbootstrapped projects because these artifacts are only published locally for bootstrapping (and local development), and the bootstrapped projects reference packageBin outputs and don't care about packageDoc.
In fact, other nonbootstrapped projects like `scala3-compiler-nonbootstrapped` and `tasty-core-nonbootstrapped` already set `packageDoc / publishArtifact := false`.
In my local environemnt, clean build with `publishLocal`, previously took 230s, and not it took around 90s.1 parent 6c411a6 commit 5923f77
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1127 | 1127 | | |
1128 | 1128 | | |
1129 | 1129 | | |
| 1130 | + | |
1130 | 1131 | | |
1131 | 1132 | | |
1132 | 1133 | | |
| |||
1176 | 1177 | | |
1177 | 1178 | | |
1178 | 1179 | | |
| 1180 | + | |
1179 | 1181 | | |
1180 | 1182 | | |
1181 | 1183 | | |
| |||
0 commit comments