Pass sbtClassifiers around

Mostly for printed messages, and for missingOk in a subsequent commit
This commit is contained in:
Alexandre Archambault 2020-05-15 12:17:39 +02:00
parent aefefb4634
commit 0ce27bde9e
3 changed files with 5 additions and 2 deletions

View File

@ -52,6 +52,8 @@ import scala.concurrent.duration.Duration
cachePolicies: Vector[CachePolicy] = CacheDefaults.cachePolicies.to[Vector].map(FromCoursier.cachePolicy),
@since
missingOk: Boolean = false,
@since
sbtClassifiers: Boolean = false
) {
def withLog(log: Logger): CoursierConfiguration =

View File

@ -152,7 +152,7 @@ class CoursierDependencyResolution(conf: CoursierConfiguration) extends Dependen
parentProjectCache = Map.empty,
interProjectDependencies = interProjectDependencies,
internalRepositories = Seq(interProjectRepo, extraProjectsRepo),
sbtClassifiers = false,
sbtClassifiers = conf.sbtClassifiers,
projectName = projectName,
loggerOpt = loggerOpt,
cache = cache0,
@ -174,7 +174,7 @@ class CoursierDependencyResolution(conf: CoursierConfiguration) extends Dependen
includeSignatures = false,
loggerOpt = loggerOpt,
projectName = projectName,
sbtClassifiers = false,
sbtClassifiers = conf.sbtClassifiers,
cache = cache0,
parallel = conf.parallelDownloads,
classpathOrder = conf.classpathOrder,

View File

@ -161,6 +161,7 @@ object LmCoursierPlugin extends AutoPlugin {
.withStrict(strict)
.withForceVersions(userForceVersions.toVector)
.withMissingOk(updateConfig.missingOk)
.withSbtClassifiers(sbtClassifiers)
}
}
private def mkDependencyResolution: Def.Initialize[Task[DependencyResolution]] =