如何在任何命令中指定 SBT 使用的线程数?
how to specify the number of threads used by SBT during any command?
Maven 有 -T <num_threads>
选项。 SBT 有类似的东西吗?如何让它在并行线程中下载我的依赖项而不是顺序执行?
从SBT 1.0:
开始支持并行依赖下载
sbt 1 by default uses Gigahorse HTTP client (backed by Square OkHttp)
to download artifacts in parallel.
这也在Download artifacts in parallel #590
中讨论
coursier SBT插件也支持并行下载依赖:
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
.
Maven 有 -T <num_threads>
选项。 SBT 有类似的东西吗?如何让它在并行线程中下载我的依赖项而不是顺序执行?
从SBT 1.0:
开始支持并行依赖下载sbt 1 by default uses Gigahorse HTTP client (backed by Square OkHttp) to download artifacts in parallel.
这也在Download artifacts in parallel #590
中讨论coursier SBT插件也支持并行下载依赖:
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
.