title: How to set "-aspectpath" for the FreeFair AspectJ Gradle Plugin?
body: <p>I am trying to use an AspectJ Annotation that is in a Library, that I am pulling into my project. My project uses Gradle, so I am attempting to use <a href="https://plugins.gradle.org/search?term=freefair+aspectj" rel="nofollow noreferrer">FreeFair AspectJ Gradle Plugin</a>.</p>
  
  <p>I need to be able to set the AspectJ <em>-aspectpath</em> argument, to the Library Dependency that Gradle is pulling in.</p>
  
  <p>FreeFair, does not seem to have much <a href="https://github.com/freefair/gradle-plugins/tree/3.5.1/aspectj-plugin" rel="nofollow noreferrer">Documentation</a>, mainly just <a href="https://github.com/freefair/gradle-plugins/blob/3.5.1/examples/aspectj" rel="nofollow noreferrer">Sample Code</a>.</p>
  
  <p>In their sample code, I see that I can use this to set the <em>-aspectpath</em> to a local "project":</p>
  
  <pre><code>aspect project(":aspectj:aspect")
  </code></pre>
  
  <p>Does anyone know how to set the <em>-aspectpath</em> to an external library dependency?</p>
  
  <p>I created an example Project and put it on GitHub: <a href="https://github.com/BrandonDudek/freefair-aspectpath-external-library" rel="nofollow noreferrer">freefair-aspectpath-external-library</a>.</p>
  
  <ul>
  <li><em>Note:</em> I am using <em>io.freefair.gradle:aspectj-plugin</em> version <strong>2.9.5</strong> because my project is stuck using Gradle version <strong>4.10.3</strong>.</li>
  </ul>
  
  <p><br/>
  <strong>Update:</strong> I have created a bug for this: <a href="https://github.com/freefair/gradle-plugins/issues/46" rel="nofollow noreferrer">https://github.com/freefair/gradle-plugins/issues/46</a></p>