title: Configure Gradle to include main classes as well as test classes into my .jar archive
body: <p>How do I configure Gradle to include main classes as well as test classes into my .jar archive.  Currently the .jar that gets built in the <strong>build/libs</strong>  directory is missing my test classes.   It is only including classes sourced from <strong>project-root/src/main/java/com/package</strong>  in the .jar after Gradle compiles them into <strong>project-root/bin/com/package/</strong> .</p>
  
  <pre><code>jar {
      manifest {
          attributes 'Implementation-Title': title, 'Implementation-Version': version, 'Main-Class': mainTestClass
      }
  }
  </code></pre>
  
  <p>The wierd thing is that while Gradle is putting the compiled test classes into <strong>project-root/bin/com/package/</strong> ALONG with the main classes, it strangely is deciding to not put them into the .jar archive.  So, how do I get the .jar to also include the test classes that were originally sourced in the  <strong>project-root/src/test/java/com/package/</strong>  directory?</p>
  
  <p><a href="https://gist.github.com/4108725" rel="noreferrer">Here is my build.gradle file</a> that I need help with.</p>