mirror of https://github.com/sbt/sbt.git
Use more sound default cache policy in API
This commit is contained in:
parent
d47c000a87
commit
9428d0343f
|
|
@ -906,7 +906,7 @@ object Cache {
|
||||||
def file(
|
def file(
|
||||||
artifact: Artifact,
|
artifact: Artifact,
|
||||||
cache: File = default,
|
cache: File = default,
|
||||||
cachePolicy: CachePolicy = CachePolicy.FetchMissing,
|
cachePolicy: CachePolicy = CachePolicy.UpdateChanging,
|
||||||
checksums: Seq[Option[String]] = defaultChecksums,
|
checksums: Seq[Option[String]] = defaultChecksums,
|
||||||
logger: Option[Logger] = None,
|
logger: Option[Logger] = None,
|
||||||
pool: ExecutorService = defaultPool,
|
pool: ExecutorService = defaultPool,
|
||||||
|
|
@ -961,7 +961,7 @@ object Cache {
|
||||||
|
|
||||||
def fetch(
|
def fetch(
|
||||||
cache: File = default,
|
cache: File = default,
|
||||||
cachePolicy: CachePolicy = CachePolicy.FetchMissing,
|
cachePolicy: CachePolicy = CachePolicy.UpdateChanging,
|
||||||
checksums: Seq[Option[String]] = defaultChecksums,
|
checksums: Seq[Option[String]] = defaultChecksums,
|
||||||
logger: Option[Logger] = None,
|
logger: Option[Logger] = None,
|
||||||
pool: ExecutorService = defaultPool,
|
pool: ExecutorService = defaultPool,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue