title: How to include runtime dependency in jar generated from gradle jar task
body: <p>I am creating a fat jar using gradle, build.gradle is as below:</p>
  
  <pre><code>...
  dependencies {  
  
      compile files('local_path1')
      compile files('local_path2')  
      runtime files('local_path3')
  }
  
  task customFatJar(type: Jar) {
      manifest {
          attributes 'Main-Class': 'MyMainClass'
      }
      archiveName = 'my-jar'
      from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
      with jar
  }
  </code></pre>
  
  <p>Now, once I run the "customFatJar" task, the jar generated contains dependent jars in paths "local_path1" and "local_path2". But the jar generated does not contain dependent jar in path "local_path3".</p>
  
  <p>Please let me know correct dependency configuration to achieve this.</p>