summaryrefslogtreecommitdiff
path: root/build.sbt
diff options
context:
space:
mode:
authorStefan Zeiger <szeiger@novocode.com>2016-11-08 19:42:26 +0100
committerStefan Zeiger <szeiger@novocode.com>2016-11-08 19:42:26 +0100
commitd5bbc2d541e2548e7440cff1aff6d70dbdf6eb08 (patch)
tree120fc8f601c49eb8ba39ae8427d392cb2d62ebfe /build.sbt
parent10c609e750a7089055b126e6231e5ddb2f2e8623 (diff)
downloadscala-d5bbc2d541e2548e7440cff1aff6d70dbdf6eb08.tar.gz
scala-d5bbc2d541e2548e7440cff1aff6d70dbdf6eb08.tar.bz2
scala-d5bbc2d541e2548e7440cff1aff6d70dbdf6eb08.zip
Add “test”, “scaladoc” and “repl” projects to scala-compiler docs
This makes the scaladoc bundle for scala-compiler consistent with the binary and source bundles.
Diffstat (limited to 'build.sbt')
-rw-r--r--build.sbt10
1 files changed, 10 insertions, 0 deletions
diff --git a/build.sbt b/build.sbt
index f500639b8f..e88e35da02 100644
--- a/build.sbt
+++ b/build.sbt
@@ -411,6 +411,16 @@ lazy val compiler = configureAsSubproject(project)
(unmanagedResourceDirectories in Compile in LocalProject("repl")).value
base ** ((includeFilter in unmanagedResources in Compile).value || "*.scala" || "*.psd" || "*.ai" || "*.java") pair relativeTo(base)
},
+ // Include the additional projects in the scaladoc JAR:
+ sources in Compile in doc ++= {
+ val base =
+ (unmanagedSourceDirectories in Compile in LocalProject("interactive")).value ++
+ (unmanagedSourceDirectories in Compile in LocalProject("scaladoc")).value ++
+ (unmanagedSourceDirectories in Compile in LocalProject("repl")).value
+ ((base ** ("*.scala" || "*.java"))
+ --- (base ** "Scaladoc*ModelTest.scala") // exclude test classes that depend on partest
+ ).get
+ },
scalacOptions in Compile in doc ++= Seq(
"-doc-root-content", (sourceDirectory in Compile).value + "/rootdoc.txt"
),