Skip to content

Commit 623ecd2

Browse files
committed
Disable warnings on CI
1 parent c70f377 commit 623ecd2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

build.gradle

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,14 @@ subprojects {
6868
apply plugin: 'com.diffplug.spotless'
6969

7070
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
7474
options.errorprone.enabled = false
7575
}
76+
if (System.env.CI != null) {
77+
options.errorprone.disableAllWarnings = true
78+
}
7679
}
7780
if ((project.name.contains('samples') && !project.name.contains('kotlin')) || project.name.contains('benchmarks')) {
7881
apply plugin: 'java'

0 commit comments

Comments
 (0)