You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by vy...@apache.org on 2022/12/12 12:16:45 UTC

[logging-log4j-tools] branch error-prone created (now eeed4ee)

This is an automated email from the ASF dual-hosted git repository.

vy pushed a change to branch error-prone
in repository https://gitbox.apache.org/repos/asf/logging-log4j-tools.git


      at eeed4ee  Add Error Prone compiler plugin.

This branch includes the following new commits:

     new eeed4ee  Add Error Prone compiler plugin.

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[logging-log4j-tools] 01/01: Add Error Prone compiler plugin.

Posted by vy...@apache.org.
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>