Hi
Is there a more elegant (Groovy) way than repeatedly calling appendNode() to customize the pom.xml?
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom.withXml {
asNode().appendNode('name', 'some name')
asNode().appendNode('description', 'some description')
asNode().appendNode('developers').appendNode('developer').
appendNode('id', 'someid').parent().
appendNode('name', 'somename').parent().
appendNode('email', 'someemail')
asNode().appendNode('licenses').appendNode('license').
appendNode('name', 'Apache License, Version 2.0').parent().
appendNode('url', 'http://www.apache.org/licenses/LICENSE-2.0.html')
}
}
}
....
}