exclude should apply to any artifact type, not just jars. fixes #436

This commit is contained in:
Mark Harrah 2012-04-28 18:58:38 -04:00
parent 8af21f72fe
commit 9fe72a546e
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ private object IvyScala
* the given configurations. */
private[sbt] def excludeRule(organization: String, name: String, configurationNames: Iterable[String]): ExcludeRule =
{
val artifact = new ArtifactId(ModuleId.newInstance(organization, name), "*", "jar", "*")
val artifact = new ArtifactId(ModuleId.newInstance(organization, name), "*", "*", "*")
val rule = new DefaultExcludeRule(artifact, ExactPatternMatcher.INSTANCE, emptyMap[AnyRef,AnyRef])
configurationNames.foreach(rule.addConfiguration)
rule