Skip to content

Instantly share code, notes, and snippets.

@augustovictor
Created January 28, 2020 11:11
Show Gist options
  • Save augustovictor/4f33de940ed78bf92185fec7548c8136 to your computer and use it in GitHub Desktop.
Save augustovictor/4f33de940ed78bf92185fec7548c8136 to your computer and use it in GitHub Desktop.
task generateQueryDSL(type: JavaCompile, group: 'build',
description: 'Generates the QueryDSL query types') {
source = sourceSets.main.java
classpath = configurations.compile + configurations.querydslapt
options.compilerArgs = [
"-proc:only",
"-processor", "org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor"
]
destinationDir = sourceSets.generated.java.srcDirs.iterator.next
}
compileJava.dependsOn generateQueryDSL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment