I'm using the Gradle publishing mechanism that is is still in incubation using the publishing
DSL.
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom.withXml {
def parentNode = asNode().appendNode('parent')
parentNode.appendNode('groupId', 'org.springframework.boot')
parentNode.appendNode('artifactId', 'spring-boot-starter-parent')
parentNode.appendNode('version', springBootVersion)
}
// BEGIN sourcejar
artifact sourceJar {
classifier "sources"
}
// END sourcejar
artifact sharedTestJar {
classifier "sharedtest"
}
}
}
This basically works but as soon as as I'm adding a classifier the repackaged artifact is not deployed anymore. So what configuration do I have to refer to for registering the repackaged artifact for publication?
bootRepackage {
classifier = 'exec'
}