|
493 | 493 |
|
494 | 494 | <dockerfile.plugin.version>1.4.6</dockerfile.plugin.version>
|
495 | 495 | <enforcer.plugin.version>1.4.1</enforcer.plugin.version>
|
| 496 | + <error-prone-javac.version>9+181-r4173-1</error-prone-javac.version> |
| 497 | + <error-prone.version>2.3.2</error-prone.version> |
496 | 498 | <failsafe.plugin.version>2.22.0</failsafe.plugin.version>
|
497 | 499 | <fest.assert.version>2.0M8</fest.assert.version>
|
498 | 500 | <findbugs.excludeFilterFile>src/main/config/findbugs-filter.xml</findbugs.excludeFilterFile>
|
|
781 | 783 | <failOnWarning>true</failOnWarning>
|
782 | 784 | <!-- Required for using method's parameters inside of @PreAuthorize expressions -->
|
783 | 785 | <parameters>true</parameters>
|
| 786 | + <!-- Required for ErrorProne --> |
| 787 | + <!-- @todo #971 Document ErrorProne tool --> |
| 788 | + <compilerArgs> |
| 789 | + <compilerArg>-XDcompilePolicy=simple</compilerArg> |
| 790 | + <!-- |
| 791 | + The following checks have been disabled: |
| 792 | + - MissingOverride: produce false positives with @Getter from Lombok |
| 793 | + - ParameterName: workaround for https://github.com/google/error-prone/issues/780 |
| 794 | + --> |
| 795 | + <compilerArg>-Xplugin:ErrorProne -Xep:MissingOverride:OFF -Xep:ParameterName:OFF</compilerArg> |
| 796 | + </compilerArgs> |
| 797 | + <annotationProcessorPaths> |
| 798 | + <path> |
| 799 | + <groupId>com.google.errorprone</groupId> |
| 800 | + <artifactId>error_prone_core</artifactId> |
| 801 | + <version>${error-prone.version}</version> |
| 802 | + </path> |
| 803 | + <path> |
| 804 | + <groupId>org.projectlombok</groupId> |
| 805 | + <artifactId>lombok</artifactId> |
| 806 | + <version>${lombok.version}</version> |
| 807 | + </path> |
| 808 | + </annotationProcessorPaths> |
784 | 809 | </configuration>
|
785 | 810 | </plugin>
|
786 | 811 |
|
|
1189 | 1214 | <url>https://github.com/php-coder/mystamps</url>
|
1190 | 1215 | </scm>
|
1191 | 1216 |
|
| 1217 | + <profiles> |
| 1218 | + <profile> |
| 1219 | + <id>jdk8</id> |
| 1220 | + <activation> |
| 1221 | + <jdk>1.8</jdk> |
| 1222 | + </activation> |
| 1223 | + <build> |
| 1224 | + <plugins> |
| 1225 | + <!-- Required for ErrorProne --> |
| 1226 | + <plugin> |
| 1227 | + <groupId>org.apache.maven.plugins</groupId> |
| 1228 | + <artifactId>maven-compiler-plugin</artifactId> |
| 1229 | + <configuration> |
| 1230 | + <fork>true</fork> |
| 1231 | + <compilerArgs combine.children="append"> |
| 1232 | + <compilerArg> |
| 1233 | + -J-Xbootclasspath/p:${settings.localRepository}/com/google/errorprone/javac/${error-prone-javac.version}/javac-${error-prone-javac.version}.jar |
| 1234 | + </compilerArg> |
| 1235 | + </compilerArgs> |
| 1236 | + </configuration> |
| 1237 | + </plugin> |
| 1238 | + </plugins> |
| 1239 | + </build> |
| 1240 | + </profile> |
| 1241 | + </profiles> |
| 1242 | + |
1192 | 1243 | </project>
|
0 commit comments