title: what's the gradle alternative to a fat JAR?
body: <p>If transitive libs aren't <a href="https://stackoverflow.com/a/34242899/262852">packaged</a> with the <code>JAR</code> task:</p>
  
  <pre><code>By default, jar task in gradle builds an executable jar file from your project source files. It will not contain any transitive libs that are needed for your program.
  </code></pre>
  
  <p>To the contrary, Netbeans <strong>does</strong> package <code>JAR</code> dependencies or transitive libs.  Rather than a fat <code>JAR</code> how does gradle include libs?</p>
  
  <pre><code>plugins {
      id 'com.gradle.build-scan' version '1.8' 
      id 'java'
      id 'application'
  }
  
  
  mainClassName = 'net.bounceme.dur.mbaas.json.Main'
  
  
  buildScan {
      licenseAgreementUrl = 'https://gradle.com/terms-of-service'
      licenseAgree = 'yes'
  }
  
  repositories {
      jcenter()
  }
  
  
  jar {
      manifest {
          attributes 'Main-Class': 'net.bounceme.dur.mbaas.json.Main'
      }
  }
  
  dependencies {
      //compile fileTree(dir: 'libs', include: ['*.jar'])
      runtime group: 'com.google.firebase', name: 'firebase-admin', version: '5.2.0'
      compile fileTree(dir: 'lib', include: '*.jar') 
  }
  </code></pre>
  
  <p>in relation to <a href="https://stackoverflow.com/q/44965650/262852">another</a> question:  what's the "way" to package libs with the <code>JAR</code> task which doesn't result in a "fat <code>JAR</code>"?</p>