You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-commits@jackrabbit.apache.org by re...@apache.org on 2018/06/14 12:07:19 UTC

svn commit: r1833503 - /jackrabbit/oak/trunk/oak-parent/pom.xml

Author: reschke
Date: Thu Jun 14 12:07:19 2018
New Revision: 1833503

URL: http://svn.apache.org/viewvc?rev=1833503&view=rev
Log:
OAK-7546: add maven profile to build with Guava beta checks

Modified:
    jackrabbit/oak/trunk/oak-parent/pom.xml

Modified: jackrabbit/oak/trunk/oak-parent/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-parent/pom.xml?rev=1833503&r1=1833502&r2=1833503&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-parent/pom.xml (original)
+++ jackrabbit/oak/trunk/oak-parent/pom.xml Thu Jun 14 12:07:19 2018
@@ -800,6 +800,49 @@
       </build>
    </profile>
     
+   <profile>
+      <id>guavabetachecks</id>
+      <build>
+         <plugins>
+            <plugin>
+              <artifactId>maven-compiler-plugin</artifactId>
+              <version>3.7.0</version>
+              <configuration>
+                <compilerId>javac-with-errorprone</compilerId>
+                <forceJavacCompilerUse>true</forceJavacCompilerUse>
+                <target>${java.version}</target>
+                <source>${java.version}</source>
+                <annotationProcessorPaths>
+                  <path>
+                    <groupId>com.google.guava</groupId>
+                    <artifactId>guava-beta-checker</artifactId>
+                    <version>1.0</version>
+                  </path>
+                </annotationProcessorPaths>
+                <compilerArgs>
+                  <!-- OAK-7310 -->
+                  <arg>-Xpkginfo:always</arg>
+                  <arg>-XepDisableAllChecks</arg>
+                  <arg>-Xep:BetaApi:ERROR</arg>
+                </compilerArgs>
+              </configuration>
+              <dependencies>
+                <dependency>
+                  <groupId>org.codehaus.plexus</groupId>
+                  <artifactId>plexus-compiler-javac-errorprone</artifactId>
+                  <version>2.5</version>
+                </dependency>
+                <dependency>
+                  <groupId>com.google.errorprone</groupId>
+                  <artifactId>error_prone_core</artifactId>
+                  <version>2.3.1</version>
+                </dependency>
+              </dependencies>
+            </plugin>
+         </plugins>
+      </build>
+   </profile>
+
     <profile>
       <id>rat</id>
       <build>