|
191 | 191 | <maven-checkstyle-plugin.version>3.3.1</maven-checkstyle-plugin.version>
|
192 | 192 | <maven-compiler-plugin.version>3.12.1</maven-compiler-plugin.version>
|
193 | 193 | <maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version>
|
| 194 | + <maven-enforcer-plugin.version>3.5.0</maven-enforcer-plugin.version> |
| 195 | + <extra-enforcer-rules.version>1.8.0</extra-enforcer-rules.version> |
194 | 196 | <dependency-check-maven.version>9.2.0</dependency-check-maven.version>
|
195 | 197 | <nar-maven-plugin.version>3.10.1</nar-maven-plugin.version>
|
196 | 198 | <os-maven-plugin.version>1.4.1.Final</os-maven-plugin.version>
|
|
883 | 885 | </extensions>
|
884 | 886 | <pluginManagement>
|
885 | 887 | <plugins>
|
| 888 | + <plugin> |
| 889 | + <groupId>org.apache.maven.plugins</groupId> |
| 890 | + <artifactId>maven-compiler-plugin</artifactId> |
| 891 | + <version>${maven-compiler-plugin.version}</version> |
| 892 | + <configuration> |
| 893 | + <!-- Java 17 is the minimum required version for Bookkeeper --> |
| 894 | + <release>17</release> |
| 895 | + <encoding>UTF-8</encoding> |
| 896 | + <showDeprecation>true</showDeprecation> |
| 897 | + <showWarnings>true</showWarnings> |
| 898 | + <annotationProcessorPaths> |
| 899 | + <path> |
| 900 | + <groupId>org.projectlombok</groupId> |
| 901 | + <artifactId>lombok</artifactId> |
| 902 | + <version>${lombok.version}</version> |
| 903 | + </path> |
| 904 | + </annotationProcessorPaths> |
| 905 | + <compilerArgs> |
| 906 | + <arg>-parameters</arg> |
| 907 | + </compilerArgs> |
| 908 | + </configuration> |
| 909 | + </plugin> |
886 | 910 | <plugin>
|
887 | 911 | <groupId>org.apache.maven.plugins</groupId>
|
888 | 912 | <artifactId>maven-checkstyle-plugin</artifactId>
|
|
940 | 964 | </plugins>
|
941 | 965 | </pluginManagement>
|
942 | 966 | <plugins>
|
| 967 | + <plugin> |
| 968 | + <groupId>org.apache.maven.plugins</groupId> |
| 969 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 970 | + <version>${maven-enforcer-plugin.version}</version> |
| 971 | + <executions> |
| 972 | + <execution> |
| 973 | + <id>enforce-maven</id> |
| 974 | + <goals> |
| 975 | + <goal>enforce</goal> |
| 976 | + </goals> |
| 977 | + <configuration> |
| 978 | + <rules> |
| 979 | + <requireJavaVersion> |
| 980 | + <version>[17,18),[21,22)</version> |
| 981 | + <message>Java 17 or Java 21 is required to build Bookkeeper.</message> |
| 982 | + </requireJavaVersion> |
| 983 | + <requireMavenVersion> |
| 984 | + <version>3.6.1</version> |
| 985 | + <message>Maven 3.6.1 or newer is required to build Bookkeeper.</message> |
| 986 | + </requireMavenVersion> |
| 987 | + </rules> |
| 988 | + </configuration> |
| 989 | + </execution> |
| 990 | + </executions> |
| 991 | + </plugin> |
943 | 992 | <plugin>
|
944 | 993 | <groupId>com.github.spotbugs</groupId>
|
945 | 994 | <artifactId>spotbugs-maven-plugin</artifactId>
|
|
948 | 997 | <excludeFilterFile>${session.executionRootDirectory}/buildtools/src/main/resources/bookkeeper/findbugsExclude.xml</excludeFilterFile>
|
949 | 998 | </configuration>
|
950 | 999 | </plugin>
|
951 |
| - <plugin> |
952 |
| - <groupId>org.apache.maven.plugins</groupId> |
953 |
| - <artifactId>maven-compiler-plugin</artifactId> |
954 |
| - <version>${maven-compiler-plugin.version}</version> |
955 |
| - <configuration> |
956 |
| - <encoding>UTF-8</encoding> |
957 |
| - <showDeprecation>true</showDeprecation> |
958 |
| - <showWarnings>true</showWarnings> |
959 |
| - <annotationProcessorPaths> |
960 |
| - <path> |
961 |
| - <groupId>org.projectlombok</groupId> |
962 |
| - <artifactId>lombok</artifactId> |
963 |
| - <version>${lombok.version}</version> |
964 |
| - </path> |
965 |
| - </annotationProcessorPaths> |
966 |
| - <compilerArgs> |
967 |
| - <arg>-parameters</arg> |
968 |
| - </compilerArgs> |
969 |
| - </configuration> |
970 |
| - </plugin> |
971 | 1000 | <plugin>
|
972 | 1001 | <groupId>org.apache.maven.plugins</groupId>
|
973 | 1002 | <artifactId>maven-surefire-plugin</artifactId>
|
|
0 commit comments