Can I publish pom only artifacts with Gradle?

(Danny Thomas) #1

I have a set of projects that define common dependencies such as jdbc, logging, etc. but I’m using the ‘java’ plugin which results in an empty jar to accompany the pom. Can I tell Gradle just to publish the pom, or is there a plugin type that would be better suited for this task?

(Peter Niederwieser) #2

There is probably a way to do it, but then Gradle doesn’t support consumption of dependency-only POMs (called BOMs in Maven land), and hence only Maven builds would benefit.