title: How to create single jar with FatJar (Gradle)
body: <p>I want to generate a single Jar with multiple modules and dependencies. I installed <code>FatJar Plugin</code> but I got the below error:</p>
  
  <p><a href="https://i.stack.imgur.com/0DNVc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0DNVc.png" alt="enter image description here"></a></p>
  
  <p><strong>My Code:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/ADmX5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ADmX5.png" alt="enter image description here"></a></p>
  
  <p><strong>Trying shadowJar</strong></p>
  
  <blockquote>
    <p>Error:(61, 0) Could not find method shadowJar() for arguments
    [build_eqgfg4x39smehqcteaccdy4k6$_run_closure4@780b32c6] on project
    ':SDKFramework' of type org.gradle.api.Project. Open File</p>
  </blockquote>
  
  <p><strong>My build.gradle (module)</strong></p>
  
  <pre><code>apply plugin: 'com.github.johnrengelman.shadow'
  apply plugin: 'com.android.library'
  apply plugin: 'groovyx.grooid.groovy-android'
  
  android {
      compileSdkVersion 22
      buildToolsVersion "22.0.1"
  
      defaultConfig {
          minSdkVersion 9
          targetSdkVersion 19
          versionCode 1
          versionName "0.1.1"
      }
      buildTypes {
          release {
              minifyEnabled false
              proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          }
      }
      lintOptions {
          abortOnError false
      }
  }
  
  buildscript {
      repositories {
          jcenter()
      }
      dependencies {
          classpath 'com.android.tools.build:gradle:2.1.0'
          classpath 'org.codehaus.groovy:gradle-groovy-android-plugin:0.3.10'
          classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
      }
  }
  
  dependencies {
      compile 'com.android.support:appcompat-v7:22.2.0'
      compile project(':framework2')
      compile 'com.google.code.gson:gson:2.6.1'
      compile 'junit:junit:4.12'
  }
  
  shadowJar {
  
  }
  </code></pre>