Reputation: 79
I want to create a jar using gradle which have some information about its dependancy So that when someone include it as dependancy, It should download all its dependancy from maven repository. I dont want to include actual jars in my jar like fat jar.
Upvotes: 0
Views: 33
Reputation: 8300
You can use the maven-publish
plugin to publish artifacts to maven.
It will generate a minimal POM file with the artifact name and dependencies.
So if someone includes your library into their project it will pull in all the transitive dependencies as required.
Upvotes: 1