Set missingOk if sbtClassifiers is true

Seems sbt doesn't do it by default
This commit is contained in:
Alexandre Archambault 2020-05-15 12:18:16 +02:00
parent 66711aa796
commit 907d26865a
3 changed files with 4 additions and 1 deletions

View File

@ -72,6 +72,7 @@ object ArtifactsTasks {
.withFollowHttpToHttpsRedirections(true),
parallel = parallelDownloads,
classpathOrder = true,
missingOk = sbtClassifiers
)
val resOrError = ArtifactsRun.artifacts(

View File

@ -139,6 +139,7 @@ object UpdateTasks {
includeSignatures,
sbtBootJarOverrides,
classpathOrder = true,
missingOk = sbtClassifiers
)
val rep = UpdateRun.update(params, verbosityLevel, log)

View File

@ -160,7 +160,8 @@ object LmCoursierPlugin extends AutoPlugin {
.withIvyHome(ivyPaths.value.ivyHome)
.withStrict(strict)
.withForceVersions(userForceVersions.toVector)
.withMissingOk(updateConfig.missingOk)
// seems missingOk is false in the updateConfig of updateSbtClassifiers?
.withMissingOk(updateConfig.missingOk || sbtClassifiers)
.withSbtClassifiers(sbtClassifiers)
}
}