Hey Guys,
I can’t find any documentation on this, so I’m posting here in the hopes that someone will know how to solve this.
I’ve got a fat jar that I’m attempting to publish to the plugin repo. As it’s a fat jar, the Pom file being generated by the Plugin Publisher should not have any dependencies listed. Unfortunately I can’t find a way to do that.
When publishing to our internal Nexus I’m able to achieve this by doing the following:
publications {
shadow(MavenPublication) {
from components.java
pom.withXml {
Node pomNode = asNode()
pomNode.remove(pomNode.get("dependencies"))
}
}
}
However, I’ve not been able to find a publications instance for the plugin publisher, and see no options how to modify the pom as such. Any suggestions?