From 45bcd98586cd67d52433bd2196543d2f84bff904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pawlik?= Date: Tue, 4 Jun 2024 12:55:01 +0200 Subject: [PATCH] Update 11-Howto-Scaladoc.md Add section on disabling scaladoc --- src/reference/04-Howto/11-Howto-Scaladoc.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/reference/04-Howto/11-Howto-Scaladoc.md b/src/reference/04-Howto/11-Howto-Scaladoc.md index 697ceaed7..952c3523c 100644 --- a/src/reference/04-Howto/11-Howto-Scaladoc.md +++ b/src/reference/04-Howto/11-Howto-Scaladoc.md @@ -107,3 +107,16 @@ apiURL := Some(url("https://example.org/api/")) This information will get included in a property of the published `pom.xml`, where it can be automatically consumed by sbt. + + + + +### Disable scaladoc + +If you don't need the Scaladocs to be generated, you can empty +the `sources` for `doc` task. This operation is known to improve +the build times for projects with a significant number of sources. + +```scala +Compile / doc / sources := List.empty +```