mirror of https://github.com/sbt/sbt.git
only filter Scala artifacts of type 'jar'
This commit is contained in:
parent
59e15f2c51
commit
82e53d2528
|
|
@ -71,7 +71,7 @@ private object IvyScala
|
||||||
* the given configurations. */
|
* the given configurations. */
|
||||||
private def excludeRule(organization: String, name: String, configurationNames: Iterable[String]): ExcludeRule =
|
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])
|
val rule = new DefaultExcludeRule(artifact, ExactPatternMatcher.INSTANCE, Collections.emptyMap[AnyRef,AnyRef])
|
||||||
configurationNames.foreach(rule.addConfiguration)
|
configurationNames.foreach(rule.addConfiguration)
|
||||||
rule
|
rule
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue