I'm looking for a way with Gradle to generate a maven repository with all dependencies and transitive dependencies.
For example, my project can depend on hibernate. I'd like to create a local repository somewhere on the disk with hibernate and its own dependencies.
I tryed several ways but no success:
- uploadArtifact: it seems not possible to upload dependencies of the artifact
- Sync task: I don't have maven metadata and I loose transitive dependencies
The context: My product has an engine and a webapp and could deployed as a War archive, an EAR archive or without the webapp, with or without some components in them. I need to provide users a way to configure what they need and a script to generate it. Gradle seems a good candidate but I don't see how to create a local repository with all dependencies that may be needed.
Does anyone see a solution ?
Thank you