Skip to content

Instantly share code, notes, and snippets.

@sebersole
Last active July 12, 2016 14:40
Show Gist options
  • Save sebersole/9eb540ca8b00a29109a2ec812f771cc0 to your computer and use it in GitHub Desktop.
Save sebersole/9eb540ca8b00a29109a2ec812f771cc0 to your computer and use it in GitHub Desktop.
task generateEnversStaticMetamodel(type: JavaCompile) {
source = sourceSets.main.java
include "org/hibernate/envers/**"
classpath = sourceSets.main.runtimeClasspath + sourceSets.test.compileClasspath
options.compilerArgs = [
"-proc:only",
"-processor",
"org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor"
]
destinationDir = new File( "${projectDir}/src/main/java" )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment