|
572 | 572 |
|
573 | 573 | <dockerfile.plugin.version>1.4.6</dockerfile.plugin.version> |
574 | 574 | <enforcer.plugin.version>3.0.0-M3</enforcer.plugin.version> |
575 | | - <error-prone-javac.version>9+181-r4173-1</error-prone-javac.version> |
576 | | - <error-prone.version>2.3.4</error-prone.version> |
577 | 575 | <frontend.plugin.version>1.7.6</frontend.plugin.version> |
578 | 576 | <gmavenplus.plugin.version>1.5</gmavenplus.plugin.version> |
579 | 577 |
|
|
887 | 885 | <failOnWarning>true</failOnWarning> |
888 | 886 | <compilerArgs> |
889 | 887 | <compilerArg>-Xlint:unchecked</compilerArg> |
890 | | - <!-- Required for ErrorProne --> |
891 | | - <!-- |
892 | | - @todo #971 Document ErrorProne tool |
893 | | - --> |
894 | | - <compilerArg>-XDcompilePolicy=simple</compilerArg> |
895 | | - <!-- |
896 | | - @todo #1170 ErrorProne: activate experimental checks |
897 | | - --> |
898 | | - <!-- |
899 | | - The following checks have been disabled: |
900 | | - - MissingOverride: produce false positives with @Getter from Lombok |
901 | | - - MixedMutabilityReturnType: because I like to use Collections.empty*() methods |
902 | | - - UnnecessaryAnonymousClass: I prefer to have an explicit implementation in a constant |
903 | | - - PreferJavaTimeOverload: disabled because of false positives: https://github.com/google/error-prone/issues/1435 |
904 | | - --> |
905 | | - <compilerArg>-Xplugin:ErrorProne -Xep:MissingOverride:OFF -Xep:MixedMutabilityReturnType:OFF -Xep:UnnecessaryAnonymousClass:OFF -Xep:PreferJavaTimeOverload:OFF</compilerArg> |
906 | 888 | </compilerArgs> |
907 | | - <annotationProcessorPaths> |
908 | | - <path> |
909 | | - <groupId>com.google.errorprone</groupId> |
910 | | - <artifactId>error_prone_core</artifactId> |
911 | | - <version>${error-prone.version}</version> |
912 | | - </path> |
913 | | - <path> |
914 | | - <groupId>org.projectlombok</groupId> |
915 | | - <artifactId>lombok</artifactId> |
916 | | - <version>${lombok.version}</version> |
917 | | - </path> |
918 | | - </annotationProcessorPaths> |
919 | 889 | </configuration> |
920 | 890 | </plugin> |
921 | 891 |
|
|
1268 | 1238 | </scm> |
1269 | 1239 |
|
1270 | 1240 | <profiles> |
1271 | | - <profile> |
1272 | | - <id>jdk8</id> |
1273 | | - <activation> |
1274 | | - <jdk>1.8</jdk> |
1275 | | - </activation> |
1276 | | - <build> |
1277 | | - <plugins> |
1278 | | - <plugin> |
1279 | | - <groupId>org.apache.maven.plugins</groupId> |
1280 | | - <artifactId>maven-compiler-plugin</artifactId> |
1281 | | - <configuration> |
1282 | | - <!-- Required for ErrorProne --> |
1283 | | - <fork>true</fork> |
1284 | | - <compilerArgs combine.children="append"> |
1285 | | - <compilerArg> |
1286 | | - -J-Xbootclasspath/p:${settings.localRepository}/com/google/errorprone/javac/${error-prone-javac.version}/javac-${error-prone-javac.version}.jar |
1287 | | - </compilerArg> |
1288 | | - </compilerArgs> |
1289 | | - </configuration> |
1290 | | - </plugin> |
1291 | | - </plugins> |
1292 | | - </build> |
1293 | | - </profile> |
1294 | 1241 | <profile> |
1295 | 1242 | <id>jdk11</id> |
1296 | 1243 | <activation> |
|
1320 | 1267 | <artifactId>maven-compiler-plugin</artifactId> |
1321 | 1268 | <configuration> |
1322 | 1269 | <release>17</release> |
1323 | | - <fork>true</fork> |
1324 | | - <compilerArgs combine.children="append"> |
1325 | | - <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg> |
1326 | | - <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg> |
1327 | | - <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg> |
1328 | | - <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED</arg> |
1329 | | - <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</arg> |
1330 | | - <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg> |
1331 | | - <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg> |
1332 | | - <arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg> |
1333 | | - <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg> |
1334 | | - <arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg> |
1335 | | - </compilerArgs> |
1336 | 1270 | </configuration> |
1337 | 1271 | </plugin> |
1338 | 1272 | </plugins> |
|
0 commit comments