Skip to content

Commit 3308b64

Browse files
committed
add error prone plugin
1 parent 154f496 commit 3308b64

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

pom.xml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,26 @@
159159
<plugin>
160160
<groupId>org.apache.maven.plugins</groupId>
161161
<artifactId>maven-compiler-plugin</artifactId>
162-
<version>3.0</version>
162+
<version>3.3</version>
163163
<configuration>
164+
<compilerId>javac-with-errorprone</compilerId>
165+
<forceJavacCompilerUse>true</forceJavacCompilerUse>
164166
<source>${java.version}</source>
165167
<target>${java.version}</target>
168+
<showWarnings>true</showWarnings>
166169
</configuration>
170+
<dependencies>
171+
<dependency>
172+
<groupId>org.codehaus.plexus</groupId>
173+
<artifactId>plexus-compiler-javac-errorprone</artifactId>
174+
<version>2.8</version>
175+
</dependency>
176+
<dependency>
177+
<groupId>com.google.errorprone</groupId>
178+
<artifactId>error_prone_core</artifactId>
179+
<version>2.3.1</version>
180+
</dependency>
181+
</dependencies>
167182
</plugin>
168183

169184
<plugin>

0 commit comments

Comments
 (0)