mirror of https://github.com/sbt/sbt.git
Pass sbtClassifiers around
Mostly for printed messages, and for missingOk in a subsequent commit
This commit is contained in:
parent
aefefb4634
commit
0ce27bde9e
|
|
@ -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 =
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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]] =
|
||||
|
|
|
|||
Loading…
Reference in New Issue