Merge pull request #7437 from azdrojowa123/1.10.x-fix-update-sbtSbtClassfiers

[#5219] fix `updateSbtClassifiers` task
This commit is contained in:
eugene yokota 2023-11-21 11:08:08 -05:00 committed by GitHub
commit 213e933be6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -185,7 +185,11 @@ private[sbt] object LibraryManagement {
import config.{ updateConfiguration => c, module => mod }
import mod.{ id, dependencies => deps, scalaModuleInfo }
val base = restrictedCopy(id, true).withName(id.name + "$" + label)
val module = lm.moduleDescriptor(base, deps, scalaModuleInfo)
val moduleSettings = ModuleDescriptorConfiguration(base, ModuleInfo(base.name))
.withScalaModuleInfo(scalaModuleInfo)
.withDependencies(deps)
.withConfigurations(mod.configurations)
val module = lm.moduleDescriptor(moduleSettings)
val report = lm.update(module, c, uwconfig, log) match {
case Right(r) => r
case Left(w) =>