From 6d18ead0b7e632d386ccb646875412f8c03bfb0e Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Fri, 16 Oct 2020 15:18:48 +0200 Subject: [PATCH] Fail on warnings with compileGroovy (since it compiles Java code as well) (cherry picked from commit d77ecb26a9548a6b9b74b3b69bc844e57c2bfe0d) --- spring-beans/spring-beans.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/spring-beans/spring-beans.gradle b/spring-beans/spring-beans.gradle index 09b03d0ba9..fb32ddde5d 100644 --- a/spring-beans/spring-beans.gradle +++ b/spring-beans/spring-beans.gradle @@ -21,6 +21,7 @@ sourceSets { compileGroovy { sourceCompatibility = 1.8 targetCompatibility = 1.8 + options.compilerArgs += "-Werror" } // This module also builds Kotlin code and the compileKotlin task naturally depends on