Add missing Ivy attributes in dependencies of published artifacts

Fixes https://github.com/alexarchambault/coursier/issues/237
This commit is contained in:
Alexandre Archambault 2016-04-28 23:17:11 +02:00
parent 869d57c2f4
commit f24a71f2fc
No known key found for this signature in database
GPG Key ID: 14640A6839C263A9
1 changed files with 8 additions and 1 deletions

View File

@ -62,9 +62,16 @@ object MakeIvyXml {
<exclude org={org} module={name} name="*" type="*" ext="*" conf="" matcher="exact"/>
}
<dependency org={dep.module.organization} name={dep.module.name} rev={dep.version} conf={s"$conf->${dep.configuration}"}>
val n = <dependency org={dep.module.organization} name={dep.module.name} rev={dep.version} conf={s"$conf->${dep.configuration}"}>
{excludes}
</dependency>
val moduleAttrs = dep.module.attributes.foldLeft[xml.MetaData](xml.Null) {
case (acc, (k, v)) =>
new PrefixedAttribute("e", k, v, acc)
}
n % moduleAttrs
}
<ivy-module version="2.0" xmlns:e="http://ant.apache.org/ivy/extra">