only filter Scala artifacts of type 'jar'

This commit is contained in:
Mark Harrah 2010-09-12 23:14:55 -04:00
parent 42d4323d2b
commit 2532cc5779
1 changed files with 1 additions and 1 deletions

View File

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