Skip to content

Commit

Permalink
Adds profile to run Error Prone in JDK8
Browse files Browse the repository at this point in the history
  • Loading branch information
MaicolAntali committed Feb 1, 2023
1 parent 9910d47 commit 61771d0
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,27 @@
</build>

<profiles>
<!-- using github.com/google/error-prone-javac is required when running on JDK 8 -->
<profile>
<id>jdk8</id>
<activation>
<jdk>1.8</jdk>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<fork>true</fork>
<compilerArgs combine.children="append">
<arg>-J-Xbootclasspath/p:${settings.localRepository}/com/google/errorprone/javac/${maven.compiler.release}/javac-${maven.compiler.release}.jar</arg>
</compilerArgs>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<!-- Profile defining additional plugins to be executed for release -->
<profile>
<id>release</id>
Expand Down

0 comments on commit 61771d0

Please sign in to comment.