Skip to content

Commit 348bb14

Browse files
authored
Suppress Error Prone warnings from generated code (#6142)
Signed-off-by: Johnny Lim <[email protected]>
1 parent 2ee39cc commit 348bb14

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ subprojects {
6969

7070
if (project.name != 'micrometer-bom') {
7171
tasks.withType(JavaCompile).configureEach {
72+
options.errorprone.disableWarningsInGeneratedCode = true
73+
options.errorprone.excludedPaths = ".*/build/generated/.*"
74+
7275
if (!javaLanguageVersion.canCompileOrRun(17)) {
7376
// Error Prone does not work with JDK <17
7477
options.errorprone.enabled = false

0 commit comments

Comments
 (0)