From 55637a7bb2d5a188218eec0e84408474d67358f4 Mon Sep 17 00:00:00 2001 From: Stephan Schroevers Date: Mon, 18 Dec 2023 19:16:20 +0100 Subject: [PATCH] Update Error Prone `-XepExcludedPaths` flag to be Windows-compatible Prior to these changes the provided pattern would never match on Windows, as Error Prone matches against file URIs, which in practice will always contain forward slashes, even on Windows. --- pom.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index f9f15b81ff..c314106585 100644 --- a/pom.xml +++ b/pom.xml @@ -1741,7 +1741,13 @@ avoid that, so we simply tell Error Prone not to warn about generated code. --> -XepDisableWarningsInGeneratedCode - -XepExcludedPaths:\Q${project.build.directory}${file.separator}\E.* + + -XepExcludedPaths:(?!.*/src/[^/]+/java/.*).* -Xep:AndroidJdkLibsChecker:OFF