title: Gradle exclude local jar during testRunTime
body: <p>I've below situation here... My <code>Gradle jar</code> target needs <code>javaee-api-*.jar</code> as a <code>compile</code> time</p>
  <pre><code>dependencies {
  
      compile fileTree(dir: '../lib', include: ['/**/javaee-api-*.jar'])
  
  }
  </code></pre>
  <p>But, during <code>Gradle test</code> execution I need <code>dependencies</code> as below...</p>
  <pre><code>dependencies {
  
      compileOnly fileTree(dir: '../lib', include: ['/**/javaee-api-*.jar'])
  
  }
  </code></pre>
  <p>How should I exclude a jar during <code>testRunTime</code>?</p>