mirror of https://github.com/sbt/sbt.git
Rename apply method of Fetch to from
This commit is contained in:
parent
645dcfb259
commit
29e3cf8f81
|
|
@ -56,6 +56,6 @@ object Platform {
|
||||||
implicit def fetch(
|
implicit def fetch(
|
||||||
repositories: Seq[core.Repository]
|
repositories: Seq[core.Repository]
|
||||||
): Fetch.Metadata[Task] =
|
): Fetch.Metadata[Task] =
|
||||||
Fetch(repositories, Platform.artifact)
|
Fetch.from(repositories, Platform.artifact)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -210,7 +210,7 @@ class Helper(
|
||||||
val fetchs = cachePolicies.map(p =>
|
val fetchs = cachePolicies.map(p =>
|
||||||
Cache.fetch(caches, p, logger = logger, pool = pool)
|
Cache.fetch(caches, p, logger = logger, pool = pool)
|
||||||
)
|
)
|
||||||
val fetchQuiet = coursier.Fetch(
|
val fetchQuiet = coursier.Fetch.from(
|
||||||
repositories,
|
repositories,
|
||||||
fetchs.head,
|
fetchs.head,
|
||||||
fetchs.tail: _*
|
fetchs.tail: _*
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ object Fetch {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def apply[F[_]](
|
def from[F[_]](
|
||||||
repositories: Seq[core.Repository],
|
repositories: Seq[core.Repository],
|
||||||
fetch: Content[F],
|
fetch: Content[F],
|
||||||
extra: Content[F]*
|
extra: Content[F]*
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ object Platform {
|
||||||
implicit def fetch(
|
implicit def fetch(
|
||||||
repositories: Seq[core.Repository]
|
repositories: Seq[core.Repository]
|
||||||
): Fetch.Metadata[Task] =
|
): Fetch.Metadata[Task] =
|
||||||
Fetch(repositories, Platform.artifact)
|
Fetch.from(repositories, Platform.artifact)
|
||||||
|
|
||||||
trait Logger {
|
trait Logger {
|
||||||
def fetching(url: String): Unit
|
def fetching(url: String): Unit
|
||||||
|
|
|
||||||
|
|
@ -240,7 +240,7 @@ object Tasks {
|
||||||
|
|
||||||
val resLogger = createLogger()
|
val resLogger = createLogger()
|
||||||
|
|
||||||
val fetch = coursier.Fetch(
|
val fetch = Fetch.from(
|
||||||
repositories,
|
repositories,
|
||||||
Cache.fetch(caches, CachePolicy.LocalOnly, checksums = checksums, logger = Some(resLogger), pool = pool),
|
Cache.fetch(caches, CachePolicy.LocalOnly, checksums = checksums, logger = Some(resLogger), pool = pool),
|
||||||
Cache.fetch(caches, cachePolicy, checksums = checksums, logger = Some(resLogger), pool = pool)
|
Cache.fetch(caches, cachePolicy, checksums = checksums, logger = Some(resLogger), pool = pool)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue