mirror of https://github.com/sbt/sbt.git
pass classifiersModule configurations to ModuleDescriptorConfiguration
This commit is contained in:
parent
df0b96b5eb
commit
cd6e992fe3
|
|
@ -185,7 +185,11 @@ private[sbt] object LibraryManagement {
|
||||||
import config.{ updateConfiguration => c, module => mod }
|
import config.{ updateConfiguration => c, module => mod }
|
||||||
import mod.{ id, dependencies => deps, scalaModuleInfo }
|
import mod.{ id, dependencies => deps, scalaModuleInfo }
|
||||||
val base = restrictedCopy(id, true).withName(id.name + "$" + label)
|
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 {
|
val report = lm.update(module, c, uwconfig, log) match {
|
||||||
case Right(r) => r
|
case Right(r) => r
|
||||||
case Left(w) =>
|
case Left(w) =>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue