title: Run parallel test task using gradle
body: <p>We use JUnit as a test framework. We have many projects. We use gradle (version 1.12) as a build tool. To run the unit tests in parallel using gradle we use the below script in every project under test task.</p>
  <pre><code>maxParallelForks = Runtime.runtime.availableProcessors()
  </code></pre>
  <p>Ex:</p>
  <pre><code>test {    
    maxParallelForks = Runtime.runtime.availableProcessors()       
  }
  </code></pre>
  <p>We also maintain the single gradle.properties file.</p>
  <p>Is it possible to define <strong>test.maxParallelForks = Runtime.runtime.availableProcessors()</strong> in gradle.properties file rather than defining it in each build.gradle file under test task?</p>