Is it possible to create a gradle plugins (based off of java-gradle-plugin
) where the final jar artifact contains a pom.xml
that is generated at build time?
You could probably do
apply plugin: 'java'
apply plugin: 'maven'
processResources {
from "$temporaryDir/pom.xml"
doFirst {
pom {
// pom customisations go here
}.writeTo("$temporaryDir/pom.xml")
}
}
@Lance That worked, thank you for your input.