Skip to content

Commit

Permalink
jpmorganchase#109 Added Google Errorprone profile
Browse files Browse the repository at this point in the history
Added Google Errorprone profile.  To activate, specify mvn clean compile -Perrorprone on the command line.
  • Loading branch information
jimbethancourt committed May 29, 2020
1 parent 65d2503 commit 3f7b850
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
<spring.version>2.0.5.RELEASE</spring.version>
<powermock.version>1.7.3</powermock.version>
<lombok.version>1.18.0</lombok.version>
<errorprone.version>2.3.4</errorprone.version>

<!-- SonarCloud -->
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
Expand Down Expand Up @@ -156,6 +157,36 @@
</build>

</profile>
<profile>
<id>errorprone</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version>
<configuration>
<source>${mvn.compiler.source}</source>
<target>${mvn.compiler.target}</target>
<compilerArgs combine.children="append">
<arg>-XDcompilePolicy=simple</arg>
<arg>-Xplugin:ErrorProne</arg>
<arg>-J-Xbootclasspath/p:${settings.localRepository}/com/google/errorprone/javac/${java.version}/javac-${java.version}.jar</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>${errorprone.version}</version>
</path>
<!-- Add any other annotation processors here,
even if they are also on the project dependency classpath. -->
</annotationProcessorPaths>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<build>
Expand Down

0 comments on commit 3f7b850

Please sign in to comment.