title: Gradle equivalent of Surefire classpathDependencyExclude
body: <p>I'm trying to migrate java project from maven to gradle. The problem is very tricky classpath dependency configuration for tests now.</p>
  
  <p>Our maven-surefire-plugin configuration:</p>
  
  <pre><code> &lt;includes&gt;
       &lt;include&gt;**/SomeTest1.java&lt;/include&gt;
   &lt;/includes&gt;
   &lt;classpathDependencyExcludes&gt;
       &lt;classpathDependencyExclude&gt;com.sun.jersey:jersey-core&lt;/classpathDependencyExclude&gt;
   &lt;/classpathDependencyExcludes&gt;
  </code></pre>
  
  <p></p>
  
  <p>There are different classpathes for different test-classes. How can I implement it with Gradle?</p>