title: Publish dependencies of an artifact with Gradle
body: <p>I'm looking for a way with Gradle to generate a maven repository with all dependencies and transitive dependencies. </p>
  
  <p>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. </p>
  
  <p>I tryed several ways but no success:</p>
  
  <ul>
  <li>uploadArtifact: it seems not possible to upload dependencies of the artifact</li>
  <li>Sync task: I don't have maven metadata and I loose transitive dependencies</li>
  </ul>
  
  <p>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.</p>
  
  <p>Does anyone see a solution ?</p>
  
  <p>Thank you</p>