@Generated annotation using gradlew + dagger : <p>I'm confronting a weird issue using gradlew(4.10.2) + dagger(2.18).</p>

<p>The problem is when I call: </p>

<pre><code>./gradlew :app:compileDebugAndroidTestKotlin 
</code></pre>

<p>The build fails with:</p>

<blockquote>
  <p>Task :Common:compileDebugJavaWithJavac FAILED</p>
  
  <p>/CommonModule_ProvidesGsonFactory.java:6: error: package javax.annotation.processing does not exist
  import javax.annotation.processing.<strong>Generated</strong>;</p>
  
  <p>/CommonModule_ProvidesGsonFactory.java:8: error: cannot find symbol
  @<strong>Generated</strong>(</p>
</blockquote>

<p>But if I run the task <a href="https://i.stack.imgur.com/QbV8b.png" rel="noreferrer">from Android Studio</a>, the task succeed and the <code>@Generated</code> <strong>is not</strong> present in the dagger generated class.</p>

<p>Do you have some clue to avoid the <code>@Generated</code> annotation using <code>./gradlew</code>?</p>
