HHH-8143 - Create a 'generateSources' task that performs all generation tasks
This commit is contained in:
parent
d68dcd9ae6
commit
378fc1378a
|
@ -171,6 +171,9 @@ subprojects { subProject ->
|
|||
// for the time being eat the annoying output from running the annotation processors
|
||||
generateMainLoggingClasses.logging.captureStandardError(LogLevel.INFO)
|
||||
|
||||
task generateSources( type: Task )
|
||||
generateSources.dependsOn generateMainLoggingClasses
|
||||
|
||||
compileJava.dependsOn generateMainLoggingClasses
|
||||
compileJava.options.define(compilerArgs: ["-proc:none", "-encoding", "UTF-8"])
|
||||
compileTestJava.options.define(compilerArgs: ["-proc:none", "-encoding", "UTF-8"])
|
||||
|
|
|
@ -132,8 +132,13 @@ task jaxb {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
generateMainLoggingClasses.dependsOn jaxb
|
||||
generateMainLoggingClasses.dependsOn generateGrammarSource
|
||||
|
||||
generateSources.dependsOn jaxb
|
||||
generateSources.dependsOn generateGrammarSource
|
||||
|
||||
compileJava.dependsOn jaxb
|
||||
|
||||
|
||||
|
|
|
@ -77,6 +77,8 @@ generateTestJpaMetamodelClasses.logging.captureStandardError(LogLevel.INFO)
|
|||
compileTestJava.dependsOn generateTestJpaMetamodelClasses
|
||||
compileTestJava.options.define(compilerArgs: ["-proc:none"])
|
||||
|
||||
generateSources.dependsOn generateTestJpaMetamodelClasses
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Process 'bundle resources' for the packaging tests
|
||||
|
|
|
@ -47,6 +47,7 @@ task generateJpaMetamodelClasses(type: JavaCompile) {
|
|||
}
|
||||
}
|
||||
compileJava.dependsOn generateJpaMetamodelClasses
|
||||
generateSources.dependsOn generateJpaMetamodelClasses
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
|
|
Loading…
Reference in New Issue