Skip to content

Instantly share code, notes, and snippets.

@jbrechtel
Created January 17, 2012 23:02
Show Gist options
  • Save jbrechtel/1629639 to your computer and use it in GitHub Desktop.
Save jbrechtel/1629639 to your computer and use it in GitHub Desktop.
sbt task dependencies in parallel vs serial
//this runs the dependencies in parallel (undesirable)
buildAndRun <<= Seq(addScalaLib, packageDebug in Android, removeScalaLib, startDevice in Android).dependOn,
---- vs ---
//this runs the dependencies serially (desired)
buildAndRun <<= removeScalaLib,
buildAndRun <<= buildAndRun dependsOn (startDevice in Android),
buildAndRun <<= buildAndRun dependsOn (packageDebug in Android),
buildAndRun <<= buildAndRun dependsOn addScalaLib,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment