mirror of https://github.com/sbt/sbt.git
Actually pass in the artifact, rather than just a global match
This commit is contained in:
parent
59c025a767
commit
8045731500
|
|
@ -335,7 +335,7 @@ private object IvySbt
|
|||
case _ => m
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private def toIvyArtifact(moduleID: ModuleDescriptor, a: Artifact, configurations: Iterable[String]): MDArtifact =
|
||||
{
|
||||
val artifact = new MDArtifact(moduleID, a.name, a.`type`, a.extension, null, extra(a, false))
|
||||
|
|
@ -447,7 +447,7 @@ private object IvySbt
|
|||
{
|
||||
for(conf <- dependencyDescriptor.getModuleConfigurations)
|
||||
{
|
||||
dependencyDescriptor.addExcludeRule(conf, IvyScala.excludeRule(excls.organization, excls.name, excls.configurations, "*"))
|
||||
dependencyDescriptor.addExcludeRule(conf, IvyScala.excludeRule(excls.organization, excls.name, excls.configurations, excls.artifact))
|
||||
}
|
||||
}
|
||||
moduleID.addDependency(dependencyDescriptor)
|
||||
|
|
@ -462,7 +462,7 @@ private object IvySbt
|
|||
moduleID.addDependencyDescriptorMediator(overrideID, matcher, overrideWith)
|
||||
}
|
||||
/** It is necessary to explicitly modify direct dependencies because Ivy gives
|
||||
* "IllegalStateException: impossible to get artifacts when data has not been loaded."
|
||||
* "IllegalStateException: impossible to get artifacts when data has not been loaded."
|
||||
* when a direct dependency is overridden with a newer version."*/
|
||||
def overrideDirect(dependencies: Seq[ModuleID], overrides: Set[ModuleID]): Seq[ModuleID] =
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue