mirror of https://github.com/sbt/sbt.git
More compact publications in generated ivy.xml
This commit is contained in:
parent
6830bc14cf
commit
ec52cb5b3e
|
|
@ -40,9 +40,14 @@ object MakeIvyXml {
|
|||
n
|
||||
}
|
||||
|
||||
val publicationElems = project.publications.map {
|
||||
case (conf, pub) =>
|
||||
var n = <artifact name={pub.name} type={pub.`type`} ext={pub.ext} conf={conf} />
|
||||
val publications = project
|
||||
.publications
|
||||
.groupBy { case (_, p) => p }
|
||||
.mapValues { _.map { case (cfg, _) => cfg } }
|
||||
|
||||
val publicationElems = publications.map {
|
||||
case (pub, configs) =>
|
||||
var n = <artifact name={pub.name} type={pub.`type`} ext={pub.ext} conf={configs.mkString(",")} />
|
||||
if (pub.classifier.nonEmpty)
|
||||
n = n % <x e:classifier={pub.classifier} />.attributes
|
||||
n
|
||||
|
|
|
|||
Loading…
Reference in New Issue