From 17ad39e4d7c1cbb3ed95be3b48daaff37448d240 Mon Sep 17 00:00:00 2001 From: Markus KARG Date: Mon, 5 Apr 2021 14:45:05 +0000 Subject: [PATCH] Enforcing JDK 11 on release Enforcing the use of JDK 11 on release guarantees that the published Multi-Release JAR contains ALL code versions: JDK 8 (default fallback), JDK 9 (enhanced NIO) and JDK 10 (even further enhanced NIO). Without this enforcement, there would be a risk of not having some of these versions packed into the MRJAR due to the way the POM checks for the existence of supported JDK levels using JDK-enabled profiles. --- pom.xml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/pom.xml b/pom.xml index 6b1ca17e..20a0b0e9 100644 --- a/pom.xml +++ b/pom.xml @@ -223,5 +223,30 @@ limitations under the License. + + plexus-release + + + + maven-enforcer-plugin + + + enforce-java + + enforce + + + + + 11 + + + + + + + + +