Skip to content

Commit 72694e6

Browse files
committedJun 9, 2025··
Remove build failure on warnings
1 parent c872a12 commit 72694e6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed
 

‎pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@
228228
-Xep:WaitNotInLoop:OFF
229229
</compilerArg>
230230
</compilerArgs>
231-
<failOnWarning>true</failOnWarning>
232231
<annotationProcessorPaths>
233232
<path>
234233
<groupId>com.google.errorprone</groupId>

3 commit comments

Comments
 (3)

scordio commented on Jun 9, 2025

@scordio
Contributor

Hi @fmbenhassine, is this a temporary change, or would you like to prevent ErrorProne checks from triggering build failures in the long term as well?

Once #4864 is introduced, NullAway should ideally cause build failures to spot incorrectly annotated APIs.

Taking inspiration from Spring Data, ErrorProne could be set as -XepDisableAllChecks -Xep:NullAway:ERROR, which should ignore all ErrorProne checks except the ones triggered by NullAway.

Should I proceed this way in my PR?

fmbenhassine commented on Jun 9, 2025

@fmbenhassine
ContributorAuthor

I prefer failing the build only for errors (mainly compilation errors and test failures), but not warnings. Warnings should be reported, but should not result in a build failure (they are warnings after all).

For the jSpecify PR, you can proceed as you started. Ideally, we should be able to specify which options to include/exclude at the CLI when running the plugin. We can discuss this further when merging the PR.

scordio commented on Jun 9, 2025

@scordio
Contributor

Then I propose removing all the exclusions introduced in #4807 as well, to keep the POM cleaner. I'll do that in my PR.

Please sign in to comment.