Skip to content

Commit

Permalink
Disable JavaxInjectOnAbstractMethod for Gradle plugins (#2460)
Browse files Browse the repository at this point in the history
Suppress the `JavaxInjectOnAbstractMethod` check for projects that apply `java-gradle-plugin`.
  • Loading branch information
CRogers authored Dec 7, 2022
1 parent c869ef5 commit 2792828
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog/@unreleased/pr-2460.v2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
type: fix
fix:
description: Suppress the `JavaxInjectOnAbstractMethod` check for projects that
apply `java-gradle-plugin`.
links:
- https://github.com/palantir/gradle-baseline/pull/2460
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ private static void applyToJavaProject(Project project) {
errorProneOptions.check("PreferSafeLogger", CheckSeverity.OFF);
errorProneOptions.check("PreferSafeLoggingPreconditions", CheckSeverity.OFF);
errorProneOptions.check("PreconditionsConstantMessage", CheckSeverity.OFF);
errorProneOptions.check("JavaxInjectOnAbstractMethod", CheckSeverity.OFF);
}));
});
}
Expand Down

0 comments on commit 2792828

Please sign in to comment.