Skip to content

Commit

Permalink
More predictable performance of SBT build startup, reload
Browse files Browse the repository at this point in the history
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 sbt/sbt#2970
  • Loading branch information
retronym committed Feb 23, 2017
1 parent 214a158 commit 5e9acac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions project/plugins.sbt
Expand Up @@ -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
)

0 comments on commit 5e9acac

Please sign in to comment.