From 0c35e81362da6a2c696320f0961da030f427e596 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 23 Apr 2024 08:05:59 +0300 Subject: [PATCH] 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 --- pom.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 21fa45b..caa2898 100644 --- a/pom.xml +++ b/pom.xml @@ -28,8 +28,7 @@ UTF-8 - 1.8 - 1.8 + 11