From b2af166bce00b9712f554b588527ca0c4f7544ec Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Sat, 11 Mar 2017 16:18:38 +0100 Subject: Super Bootstrap: Make dottydoc part of the bootstrap This wasn't done before because dotty could not compile dottydoc, this is now fixed. --- project/Build.scala | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/project/Build.scala b/project/Build.scala index 376e06bb1..5a21b7653 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -206,6 +206,16 @@ object DottyBuild extends Build { // Settings shared between dotty-compiler and dotty-compiler-bootstrapped lazy val dottyCompilerSettings = Seq( + + // necessary evil: dottydoc currently needs to be included in the dotty + // project, for sbt integration + unmanagedResourceDirectories in Compile := Seq((resourceDirectory in Compile).value), + unmanagedResourceDirectories in Compile += baseDirectory.value / ".." / "doc-tool" / "resources", + unmanagedSourceDirectories in Compile := Seq((scalaSource in Compile).value), + unmanagedSourceDirectories in Compile += baseDirectory.value / ".." / "doc-tool" / "src", + unmanagedSourceDirectories in Test := Seq((scalaSource in Test).value), + unmanagedSourceDirectories in Test += baseDirectory.value / ".." / "doc-tool" / "test", + // set system in/out for repl connectInput in run := true, outputStrategy := Some(StdoutOutput), @@ -448,17 +458,6 @@ object DottyBuild extends Build { settings( overrideScalaVersionSetting, - // necessary evil: dottydoc currently needs to be included in the dotty - // project, for sbt integration - // FIXME: note part of dottyCompilerSettings because the doc-tool does not - // compile with dotty - unmanagedResourceDirectories in Compile := Seq((resourceDirectory in Compile).value), - unmanagedResourceDirectories in Compile += baseDirectory.value / ".." / "doc-tool" / "resources", - unmanagedSourceDirectories in Compile := Seq((scalaSource in Compile).value), - unmanagedSourceDirectories in Compile += baseDirectory.value / ".." / "doc-tool" / "src", - unmanagedSourceDirectories in Test := Seq((scalaSource in Test).value), - unmanagedSourceDirectories in Test += baseDirectory.value / ".." / "doc-tool" / "test", - // Disable scaladoc generation, it's way too slow and we'll replace it // by dottydoc anyway. We still publish an empty -javadoc.jar to make // sonatype happy. -- cgit v1.2.3