Maven has the -T <num_threads>
option. Is there anything similar for SBT? How can make it download my dependencies in parallel threads rather than doing it sequentially?
Asked
Active
Viewed 1,372 times
2

MozenRath
- 9,652
- 13
- 61
- 104
-
Not sure the exact thing you asked is possible. Here is what SBT docs suggest https://www.scala-sbt.org/1.x/docs/Parallel-Execution.html – Alexander Arendar May 07 '18 at 15:55
-
thats seems like limiting tags for parallel execution. I am just trying to get the parallel execution to increase on my pc – MozenRath May 07 '18 at 16:11
1 Answers
2
Parallel dependency download has been supported since SBT 1.0:
sbt 1 by default uses Gigahorse HTTP client (backed by Square OkHttp) to download artifacts in parallel.
This is also discussed in Download artifacts in parallel #590
coursier SBT plugin also supports downloading of dependencies in parallel:
By default, downloads happen in a global fixed thread pool (with 6 threads, allowing for 6 parallel downloads), but you can supply your own thread pool to
Cache.default
.

Mario Galic
- 47,285
- 6
- 56
- 98