File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -68,11 +68,14 @@ subprojects {
68
68
apply plugin : ' com.diffplug.spotless'
69
69
70
70
if (project. name != ' micrometer-bom' ) {
71
- if ( ! javaLanguageVersion . canCompileOrRun( 17 )) {
72
- logger . info( " Disabling Error Prone because the JDK version is less than 17 " )
73
- tasks . withType( JavaCompile ) . configureEach {
71
+ tasks . withType( JavaCompile ) . configureEach {
72
+ if ( ! javaLanguageVersion . canCompileOrRun( 17 )) {
73
+ // Error Prone does not work with JDK <17
74
74
options. errorprone. enabled = false
75
75
}
76
+ if (System . env. CI != null ) {
77
+ options. errorprone. disableAllWarnings = true
78
+ }
76
79
}
77
80
if ((project. name. contains(' samples' ) && ! project. name. contains(' kotlin' )) || project. name. contains(' benchmarks' )) {
78
81
apply plugin : ' java'
You can’t perform that action at this time.
0 commit comments