Skip to content

Commit 0c35e81

Browse files
committed
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
1 parent 2fb8d27 commit 0c35e81

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pom.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828

2929
<properties>
3030
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
31-
<maven.compiler.source>1.8</maven.compiler.source>
32-
<maven.compiler.target>1.8</maven.compiler.target>
31+
<maven.compiler.release>11</maven.compiler.release>
3332
</properties>
3433

3534
<dependencies>

0 commit comments

Comments
 (0)