diff --git a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineErrorProne.java b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineErrorProne.java index c9006d835..7ef3366c5 100644 --- a/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineErrorProne.java +++ b/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineErrorProne.java @@ -104,12 +104,14 @@ private static void applyToJavaProject(Project project) { javaCompile.getOptions()) .getExtensions() .configure(ErrorProneOptions.class, errorProneOptions -> { - errorProneOptions.check("Slf4jLogsafeArgs", CheckSeverity.OFF); - errorProneOptions.check("PreferSafeLoggableExceptions", CheckSeverity.OFF); - errorProneOptions.check("PreferSafeLogger", CheckSeverity.OFF); - errorProneOptions.check("PreferSafeLoggingPreconditions", CheckSeverity.OFF); - errorProneOptions.check("PreconditionsConstantMessage", CheckSeverity.OFF); - errorProneOptions.check("JavaxInjectOnAbstractMethod", CheckSeverity.OFF); + errorProneOptions.disable("CatchBlockLogException"); + errorProneOptions.disable("JavaxInjectOnAbstractMethod"); + errorProneOptions.disable("PreconditionsConstantMessage"); + errorProneOptions.disable("PreferSafeLoggableExceptions"); + errorProneOptions.disable("PreferSafeLogger"); + errorProneOptions.disable("PreferSafeLoggingPreconditions"); + errorProneOptions.disable("Slf4jConstantLogMessage"); + errorProneOptions.disable("Slf4jLogsafeArgs"); })); }); }