Fail on warnings with compileGroovy (since it compiles Java code as well)

This commit is contained in:
Juergen Hoeller 2020-10-16 15:18:48 +02:00
parent c45b106d95
commit d77ecb26a9
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ sourceSets {
compileGroovy { compileGroovy {
sourceCompatibility = 1.8 sourceCompatibility = 1.8
targetCompatibility = 1.8 targetCompatibility = 1.8
options.compilerArgs += "-Werror"
} }
// This module also builds Kotlin code and the compileKotlin task naturally depends on // This module also builds Kotlin code and the compileKotlin task naturally depends on