From 5e9acac8f690ac60b928e5628075cac193615233 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Thu, 23 Feb 2017 23:15:26 +1000 Subject: 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 --- project/plugins.sbt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'project') 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 +) -- cgit v1.2.3