From 9fa3ac8b3ab4cc2c5509457bd0d0ec6601169a69 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 3d8cf915645..70c759381bf 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