Skip to content

Commit

Permalink
jpmorganchase#109 Moved errorprone configuration out of a profile and…
Browse files Browse the repository at this point in the history
… into the compiler plugin configuration

Moved errorprone configuration out of profile and into the compiler plugin configuration since all issues that errorprone detected were intentional decisions.
  • Loading branch information
jimbethancourt committed Jun 21, 2020
1 parent b65150e commit 69c2f32
Showing 1 changed file with 16 additions and 35 deletions.
51 changes: 16 additions & 35 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -163,41 +163,6 @@
</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>
<arg>-XDcompilePolicy=simple</arg>
<arg>-Xplugin:ErrorProne</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
<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>
<profile>
<id>jdk8-errorprone-addendum</id>
<activation>
Expand Down Expand Up @@ -263,6 +228,22 @@
<configuration>
<source>${mvn.compiler.source}</source>
<target>${mvn.compiler.target}</target>
<compilerArgs>
<arg>-XDcompilePolicy=simple</arg>
<arg>-Xplugin:ErrorProne</arg>
</compilerArgs>
<annotationProcessorPaths>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</path>
<path>
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>${errorprone.version}</version>
</path>
</annotationProcessorPaths>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit 69c2f32

Please sign in to comment.