title: How To Specify main class when using fatjar plugin in gradle.build
body: <p>I am interested in building a single jar containing all the module dependencies and external jars in a single executable jar file which I will be able to run with <code>java -jar myApp.jar</code>.</p>
  
  <p>I have module A which is dependent on module B.
  Currently I'm using gradle, and my <code>build.gradle</code>script looks like this:</p>
  
  <pre><code>    apply plugin: 'fatjar'
      description = "A_Project"
      dependencies {
        compile project(':B_Project')
        compile "com.someExternalDependency::3.0"
      }
  </code></pre>
  
  <p>When I build it through gradle command: <code>clean build fatjar</code> a fat jar 'A.jar' is created as expected.
  But running it with as I written above results in:
  <code>no main manifest attribute, in A.jar</code>
  How can I modify my <code>build.gradle</code> file and specify the main class, or the manifest?</p>