How i can get generate metamodel classes from org.eclipse.persistence.jpa.modelgen.processor in gradle?
In maven i use someone like
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.eclipse.persistence</groupId> <artifactId>org.eclipse.persistence.jpa.modelgen.processor</artifactId>
<version>${eclipselink.version}</version>
</dependency>
</dependencies>
<configuration>
<compilerArgs>
<compilerArg>-Aeclipselink.persistenceunits=unit-name
</compilerArg>
</compilerArgs>
</configuration>
</plugin>
Thanks for any advice.
Probably too late for you to be useful, but wanted to share how I solved the problem. The following will generate metamodel every time you compile. Note, if you remove the line with
delete
, the compiler will probably complain.