|
92 | 92 | </mailingLists>
|
93 | 93 |
|
94 | 94 | <properties>
|
95 |
| - <project.build.source>17</project.build.source> |
96 |
| - <project.build.target>17</project.build.target> |
| 95 | + <maven.compiler.release>21</maven.compiler.release> |
| 96 | + <maven.compiler.source>${maven.compiler.release}</maven.compiler.source> |
| 97 | + <maven.compiler.target>${maven.compiler.release}</maven.compiler.target> |
97 | 98 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
98 | 99 |
|
99 | 100 | <project.copyright.name>The eXist-db Authors</project.copyright.name>
|
|
693 | 694 | <plugin>
|
694 | 695 | <groupId>org.apache.maven.plugins</groupId>
|
695 | 696 | <artifactId>maven-compiler-plugin</artifactId>
|
696 |
| - <version>3.13.0</version> |
| 697 | + <version>3.14.0</version> |
697 | 698 | <configuration>
|
698 |
| - <source>${project.build.source}</source> |
699 |
| - <target>${project.build.target}</target> |
700 | 699 | <encoding>${project.build.sourceEncoding}</encoding>
|
701 | 700 | </configuration>
|
702 | 701 | </plugin>
|
|
753 | 752 | <artifactId>maven-javadoc-plugin</artifactId>
|
754 | 753 | <version>3.11.2</version>
|
755 | 754 | <configuration>
|
756 |
| - <source>${project.build.source}</source> |
| 755 | + <source>${maven.compiler.release}</source> |
757 | 756 | <archive>
|
758 | 757 | <manifest>
|
759 | 758 | <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
|
|
977 | 976 | </pluginManagement>
|
978 | 977 |
|
979 | 978 | <plugins>
|
| 979 | + <plugin> |
| 980 | + <groupId>org.apache.maven.plugins</groupId> |
| 981 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 982 | + <version>3.5.0</version> |
| 983 | + <executions> |
| 984 | + <execution> |
| 985 | + <id>enforce-java</id> |
| 986 | + <goals> |
| 987 | + <goal>enforce</goal> |
| 988 | + </goals> |
| 989 | + <configuration> |
| 990 | + <rules> |
| 991 | + <requireJavaVersion> |
| 992 | + <version>${maven.compiler.target}</version> |
| 993 | + <message>eXist-db requires (at least) OpenJDK ${maven.compiler.target} to build and run.</message> |
| 994 | + </requireJavaVersion> |
| 995 | + <requireMavenVersion> |
| 996 | + <message>Modern plugins require atleast maven 3.6.3.</message> |
| 997 | + <version>3.6.3</version> |
| 998 | + </requireMavenVersion> |
| 999 | + </rules> |
| 1000 | + </configuration> |
| 1001 | + </execution> |
| 1002 | + </executions> |
| 1003 | + </plugin> |
980 | 1004 | <plugin>
|
981 | 1005 | <groupId>com.mycila</groupId>
|
982 | 1006 | <artifactId>license-maven-plugin</artifactId>
|
|
0 commit comments