mirror of https://github.com/sbt/sbt.git
Moar default values in cache module
This commit is contained in:
parent
9668f0e10c
commit
222faf18dc
|
|
@ -395,8 +395,8 @@ object Cache {
|
|||
|
||||
def file(
|
||||
artifact: Artifact,
|
||||
cache: Seq[(String, File)],
|
||||
cachePolicy: CachePolicy,
|
||||
cache: Seq[(String, File)] = default,
|
||||
cachePolicy: CachePolicy = CachePolicy.FetchMissing,
|
||||
checksums: Seq[Option[String]] = Seq(Some("SHA-1")),
|
||||
logger: Option[Logger] = None,
|
||||
pool: ExecutorService = defaultPool
|
||||
|
|
@ -446,8 +446,8 @@ object Cache {
|
|||
}
|
||||
|
||||
def fetch(
|
||||
cache: Seq[(String, File)],
|
||||
cachePolicy: CachePolicy,
|
||||
cache: Seq[(String, File)] = default,
|
||||
cachePolicy: CachePolicy = CachePolicy.FetchMissing,
|
||||
checksums: Seq[Option[String]] = Seq(Some("SHA-1")),
|
||||
logger: Option[Logger] = None,
|
||||
pool: ExecutorService = defaultPool
|
||||
|
|
@ -480,6 +480,11 @@ object Cache {
|
|||
)
|
||||
)
|
||||
|
||||
lazy val default = Seq(
|
||||
"http://" -> new File(defaultBase, "http"),
|
||||
"https://" -> new File(defaultBase, "https")
|
||||
)
|
||||
|
||||
val defaultConcurrentDownloadCount = 6
|
||||
|
||||
lazy val defaultPool =
|
||||
|
|
|
|||
Loading…
Reference in New Issue