I am just upgrading Hibernate to use Gradle 1.5 and really wanted to make use of the new publishing model. I asked an earlier question already about the new model wrt multi-project builds. But I am finding it confusing in general to use this new model to customize the generated POM. Our old build did quite a bit of customization of the POM, thought mostly it is “standardly supplied info” IMO. Our old script used a closure as such:
def pomConfig = {
organization {
name 'Hibernate.org'
url 'http://hibernate.org'
}
issueManagement {
system 'jira'
url 'http://opensource.atlassian.com/projects/hibernate/browse/HHH'
}
scm {
url "http://github.com/hibernate/hibernate-core"
connection "scm:git:http://github.com/hibernate/hibernate-core.git"
developerConnection "scm:git:git@github.com:hibernate/hibernate-core.git"
}
licenses {
license {
name 'GNU Lesser General Public License'
url 'http://www.gnu.org/licenses/lgpl-2.1.html'
comments 'See discussion at http://hibernate.org/license for more details.'
distribution 'repo'
}
}
developers {
developer {
id 'hibernate-team'
name 'The Hibernate Development Team'
organization 'Hibernate.org'
organizationUrl 'http://hibernate.org'
}
}
}
and used that closure to configure the deployer for the upload and install task(s).
I have no clue how to accomplish this using this XmlProvider API. Granted this is likely more of a Groovy question (building node trees with groovy.util.Node class), but the again I am not a Groovy developer
Any pointers? Even RTFM replies are great…with links to said manuals