I’d like to be able to customise the pom that’s used by the publishPlugins
task of the Plugin Publish plugin. My project already has the Maven plugin applied and its pom is customised as follows:
install {
repositories.mavenInstaller {
pom.whenConfigured { generatedPom ->
generatedPom.project {
// Configure name, description, url, licence, etc.
}
}
}
}
It looks like the publishPlugins
task is generating a separate pom file, build/publish-generated-resources/pom.xml
. How can I customise this pom or, even better, have the publishPlugins
task use the existing pom?