From 72125e73ce240d676e3d45fafba4eb3a3f05cb1a Mon Sep 17 00:00:00 2001 From: Mark Harrah Date: Thu, 26 Sep 2013 09:17:07 -0400 Subject: [PATCH] Build: scope root sources to 'doc' task since they shouldn't be compiled normally. --- project/Sbt.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/Sbt.scala b/project/Sbt.scala index 5eaec85f6..b5f34c1b4 100644 --- a/project/Sbt.scala +++ b/project/Sbt.scala @@ -214,7 +214,7 @@ object Sbt extends Build def fullDocSettings = Util.baseScalacOptions ++ Docs.settings ++ Sxr.settings ++ Seq( scalacOptions += "-Ymacro-no-expand", // for both sxr and doc sources in sxr <<= deepTasks(sources in Compile), //sxr - sources in Compile <<= sources in sxr, // doc + sources in (Compile,doc) <<= sources in sxr, // doc Sxr.sourceDirectories <<= deep(sourceDirectories in Compile).map(_.flatten), // to properly relativize the source paths fullClasspath in sxr <<= (externalDependencyClasspath in Compile in sbtSub), dependencyClasspath in (Compile,doc) <<= fullClasspath in sxr