title: Generating JPA2 Metamodel from a Gradle build script
body: <p>I'm trying to set up a Gradle build script for a new project. That project will use JPA 2 along with <a href="http://www.querydsl.com/" rel="noreferrer">Querydsl</a>.</p>
  
  <p>On the <a href="http://source.mysema.com/static/querydsl/2.1.2/reference/html/ch02s02.html" rel="noreferrer">following page of Querydsl's reference documentation</a>, they explain how to set up their JPAAnnotationProcessor (apt) for Maven and Ant.</p>
  
  <p>I would like to do the same with Gradle, but I don't know how and my beloved friend did not help me much on this one. I need to find a way to invoke Javac (preferably without any additional dependencies) with arguments to be able to specify the processor that apt should use (?)</p>