How to generate JPA Metamodel with Gradle 5.x : <p>I am currently trying to upgrade from gradle 4.8.1 to 5.1.1 but fail with generating the hibernate metamodel for our code.</p>

<p>The problem is that gradle 5 ignores the annotation processor passed with the compile classpath, but all plugins I found are using this (i.e <code>"-proc:only"</code>).</p>

<p>I tried to specify the annotation processor explicitly as pointed out by gradle (<a href="https://docs.gradle.org/4.6/release-notes.html#convenient-declaration-of-annotation-processor-dependencies" rel="noreferrer">https://docs.gradle.org/4.6/release-notes.html#convenient-declaration-of-annotation-processor-dependencies</a>)
<code>annotationProcessor 'org.hibernate:hibernate-jpamodelgen'</code></p>

<p>But this does not help and I still get the following error:</p>

<blockquote>
  <p>warning: Annotation processing without compilation requested but no processors were found.</p>
</blockquote>

<p>Maybe also the plugins need to be updated, but as I said all plugins which I found are passing the annotation processor with the classpath. We are currently using this one: <a href="https://github.com/Catalysts/cat-gradle-plugins/tree/master/cat-gradle-hibernate-plugin" rel="noreferrer">https://github.com/Catalysts/cat-gradle-plugins/tree/master/cat-gradle-hibernate-plugin</a></p>
