mirror of https://github.com/sbt/sbt.git
Add missing Ivy attributes in dependencies of published artifacts
Fixes https://github.com/alexarchambault/coursier/issues/237
This commit is contained in:
parent
869d57c2f4
commit
f24a71f2fc
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue