summaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2017-02-23 23:15:26 +1000
committerJason Zaugg <jzaugg@gmail.com>2017-02-23 23:20:18 +1000
commit5e9acac8f690ac60b928e5628075cac193615233 (patch)
tree4dc61bd93b8bbbe463dbd1870ed482b48ceaaf0e /project
parent214a158f67405f420f144f1e83a3df51fcb97866 (diff)
downloadscala-5e9acac8f690ac60b928e5628075cac193615233.tar.gz
scala-5e9acac8f690ac60b928e5628075cac193615233.tar.bz2
scala-5e9acac8f690ac60b928e5628075cac193615233.zip
More predictable performance of SBT build startup, reload
Disable parallelism to avoid a nasty interaction between the SBT build info plugin, which internally uses `EvaluateTask`, and can get into a race condition with other concurrnently running tasks. This could be seen as frequent, unnecessary Ivy resolution during the `reload` command, even when nothing had changed. Gory details in https://github.com/sbt/sbt/issues/2970
Diffstat (limited to 'project')
-rw-r--r--project/plugins.sbt4
1 files changed, 4 insertions, 0 deletions
diff --git a/project/plugins.sbt b/project/plugins.sbt
index 6001b6f2b4..114fae89bc 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -20,3 +20,7 @@ buildInfoKeys := Seq[BuildInfoKey](buildClasspath)
buildInfoPackage := "scalabuild"
libraryDependencies += "com.typesafe" %% "mima-reporter" % "0.1.13"
+
+concurrentRestrictions in Global := Seq(
+ Tags.limitAll(1) // workaround for https://github.com/sbt/sbt/issues/2970
+)