title: Gradle download full dependency-of-dependency chain?
body: <p>We are currently utilizing Artifactory in our organization and I'm having a bit of trouble getting an entire dependency chain downloaded.  For instance, we have the following dependency listed in our project:</p>
  
  <pre><code>compile group: 'org.jbpm', name: 'jbpm-flow-builder', version: droolsVersion
  </code></pre>
  
  <p>This package relies on a chain of dependencies like so:</p>
  
  <pre><code>jbpm-flow-builder
  └───jbpm
      └───kie-parent-with-dependencies
          └───kie-platform-bom
              └───jboss-integration-platform-bom
  </code></pre>
  
  <p>Unfortunately the <code>jboss-integration-platform-bom</code> has hundreds of other sub-dependencies in the chain.</p>
  
  <p>I've attempted several ways at downloading all of the required transitive dependencies to no avail as it seems nothing I do fully traverses the chain and I have to build, manually download, upload into Artifactory, rinse and repeat.  For instance, this did not work:</p>
  
  <pre><code>configurations {
      compile {
          transitive = true
      }
  }
  
  ...
  
  task copyDependencies(type: Copy) {
      from configurations.compile
      into 'dependencies'
  }
  </code></pre>
  
  <p>I do not have direct access to Artifactory to perform uploads so I need an efficient way to download the entire dependency chain and associated POMs into a single folder.  Any assistance would be greatly appreciated.</p>
  
  <p>Thanks!</p>