title: Creating a Jar of test binaries - Gradle
body: <p>I'm using the latest version of Gradle (milestone 9), and I'm trying to figure out how to create a Jar of all test binaries. </p>
  
  <p>From what I've found on the internet, the following should work:</p>
  
  <pre><code>task packageTests(type: Jar) {
    from sourceSets.test.classes
  }
  </code></pre>
  
  <p>However I am getting a - </p>
  
  <blockquote>
    <p>Cannot get the value of write-only property 'classes' on source set
    test.</p>
  </blockquote>
  
  <p>What is the correct way of coding what I'm trying to achieve?</p>
  
  <p>Is the property 'classes' somehow deprecated now ?</p>