diff options
-rw-r--r-- | project/build/ScalaSBTBuilder.scala | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/project/build/ScalaSBTBuilder.scala b/project/build/ScalaSBTBuilder.scala index 80b79f778d..34edb77911 100644 --- a/project/build/ScalaSBTBuilder.scala +++ b/project/build/ScalaSBTBuilder.scala @@ -6,7 +6,15 @@ import ScalaSBTBuilder._ * This class is the entry point for building scala with SBT. * @author Grégory Moix */ -class ScalaSBTBuilder(val info: ProjectInfo) extends Project with ReflectiveProject { +class ScalaSBTBuilder(val info: ProjectInfo) extends Project with ReflectiveProject { + /** This secret system property turns off transitive dependencies during change + * detection. It's a short term measure. BE AWARE! That means you can no longer + * trust sbt to recompile everything: it's only recompiling changed files. + * (The alternative is that adding a space to TraversableLike incurs a 10+ minute + * incremental build, which means sbt doesn't get used at all, so this is better.) + */ + System.setProperty("sbt.intransitive", "true") + override def dependencies: Iterable[Project] = info.dependencies ++ locker.dependencies ++ quick.dependencies ++ strap.dependencies ++ libs.dependencies override def shouldCheckOutputDirectories = false |