title: Gradle Spring Boot Dependency: Include for bootRun / Exclude for bootJar
body: <p>I have a JavaAgent JAR that needs to be:</p>
  <ul>
  <li>Included in <code>bootRun</code> (referenced in <code>bootRun_ManifestJar.jar</code> MANIFEST Class-Path)</li>
  <li>NOT Included in <code>bootJar</code> (the App.jar <code>BOOT-INF/lib</code> directory).</li>
  </ul>
  <p>What I've tried thus far:</p>
  <pre><code>compileOnly &quot;com.quartzdesk:quartzdesk-agent:3.6.0&quot;
  </code></pre>
  <p>This is not including the JAR in either <code>bootRun</code> or <code>bootJar</code></p>
  <pre><code>runtime &quot;com.quartzdesk:quartzdesk-agent:3.6.0&quot;
  </code></pre>
  <p>This is including the JAR in both  <code>bootRun</code> AND <code>bootJar</code> (surprised it is included in <code>bootJar</code>).</p>
  <p>Any suggestions would be greatly appreciated.  Thank you!</p>