mirror of https://github.com/sbt/sbt.git
Add include rules to ModuleID
This commit is contained in:
parent
565acc4e2a
commit
83fbb212d9
|
|
@ -140,6 +140,7 @@ final class IvySbt(val configuration: IvyConfiguration) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cleans cached resolution cache.
|
* Cleans cached resolution cache.
|
||||||
|
*
|
||||||
* @param md - module descriptor of the original Ivy graph.
|
* @param md - module descriptor of the original Ivy graph.
|
||||||
*/
|
*/
|
||||||
private[sbt] def cleanCachedResolutionCache(md: ModuleDescriptor, log: Logger): Unit =
|
private[sbt] def cleanCachedResolutionCache(md: ModuleDescriptor, log: Logger): Unit =
|
||||||
|
|
@ -620,6 +621,12 @@ private[sbt] object IvySbt {
|
||||||
dependencyDescriptor.addExcludeRule(conf, IvyScala.excludeRule(excls.organization, excls.name, excls.configurations, excls.artifact))
|
dependencyDescriptor.addExcludeRule(conf, IvyScala.excludeRule(excls.organization, excls.name, excls.configurations, excls.artifact))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
for (incls <- dependency.inclusions) {
|
||||||
|
for (conf <- dependencyDescriptor.getModuleConfigurations) {
|
||||||
|
dependencyDescriptor.addIncludeRule(conf, IvyScala.includeRule(incls.organization, incls.name, incls.configurations, incls.artifact))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dependencyDescriptor
|
dependencyDescriptor
|
||||||
}
|
}
|
||||||
def copyConfigurations(artifact: Artifact, addConfiguration: String => Unit): Unit =
|
def copyConfigurations(artifact: Artifact, addConfiguration: String => Unit): Unit =
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue