From 1127e14534668cba6abd939c9ff1bc4f9af1a014 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 60adb227adc..5f6c754951d 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