TM-23 compileAll task to compile all code (#5490)

* Add simple compileAll task to be used by warning check

* lazy configure compileAll
This commit is contained in:
Zoltan Kiss 2019-09-19 10:50:29 +01:00 committed by Dominic Fox
parent 2f466b568d
commit 7bbbc71fdf

View File

@ -239,7 +239,7 @@ allprojects {
// JDK11 official support (https://github.com/jacoco/jacoco/releases/tag/v0.8.3)
toolVersion = "0.8.3"
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" << "-Xlint:-options" << "-parameters"
if (warnings_as_errors) {
@ -262,6 +262,10 @@ allprojects {
}
}
tasks.register('compileAll') { task ->
task.dependsOn tasks.withType(AbstractCompile)
}
tasks.withType(Jar) { task ->
// Includes War and Ear
manifest {