Created
January 28, 2020 11:11
-
-
Save augustovictor/4f33de940ed78bf92185fec7548c8136 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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