pom.xml: compile for Java 11

New as of JDK 9:

> The --release option ensures that the code is compiled following the rules of the programming language of the specified release, and that generated classes target the release as well as the public API of that release. This means that, unlike the -source and -target options, the compiler will detect and generate an error when using APIs that don't exist in previous releases of Java SE.

Also, as of DSpace 7 we the minimum JDK is 11 anyway.

See: https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-release.html
This commit is contained in:
Alan Orth 2024-04-23 08:05:59 +03:00
parent 2fb8d274c9
commit 0c35e81362
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -28,8 +28,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.release>11</maven.compiler.release>
</properties>
<dependencies>