summaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-12-16 08:26:54 +0000
committerPaul Phillips <paulp@improving.org>2010-12-16 08:26:54 +0000
commit30e72647ed0d9e7705e551553b81722d642a7f7d (patch)
tree3c294f82b5f5770ce92f7774af1015febd108051 /project
parent9f08c98a6e801d4798cb5c3794cab23deb6d9eec (diff)
downloadscala-30e72647ed0d9e7705e551553b81722d642a7f7d.tar.gz
scala-30e72647ed0d9e7705e551553b81722d642a7f7d.tar.bz2
scala-30e72647ed0d9e7705e551553b81722d642a7f7d.zip
Added secret option to sbt build which makes it...
Added secret option to sbt build which makes it only recompile changed files. No review.
Diffstat (limited to 'project')
-rw-r--r--project/build/ScalaSBTBuilder.scala10
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