This is an automated email from the ASF dual-hosted git repository.
vy pushed a commit to branch error-prone
in repository https://gitbox.apache.org/repos/asf/logging-log4j-tools.git
commit eeed4ee59527cb8ae706b1dc5ffe459bc6470d48
Author: Volkan Yazıcı <vo...@yazi.ci>
AuthorDate: Mon Dec 12 13:17:21 2022 +0100
Add Error Prone compiler plugin.
---
pom.xml | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 78fc9aa..5fc205a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -62,12 +62,13 @@
<!-- plugin versions -->
<flatten-maven-plugin.version>1.3.0</flatten-maven-plugin.version>
+ <error-prone.version>2.10.0</error-prone.version> <!-- the latest version supporting Java 8 -->
</properties>
<build>
- <plugins>
+ <plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
@@ -79,7 +80,16 @@
<fork>true</fork>
<compilerArgs>
<arg>-Xlint:all</arg>
+ <arg>-XDcompilePolicy=simple</arg>
+ <arg>-Xplugin:ErrorProne</arg>
</compilerArgs>
+ <annotationProcessorPaths>
+ <path>
+ <groupId>com.google.errorprone</groupId>
+ <artifactId>error_prone_core</artifactId>
+ <version>${error-prone.version}</version>
+ </path>
+ </annotationProcessorPaths>
</configuration>
</plugin>