From 62d9c03f77fc4903390a05d8cb79f8dd08cf3e99 Mon Sep 17 00:00:00 2001 From: Holger Friedrich Date: Mon, 1 Apr 2024 13:58:56 +0200 Subject: [PATCH] Allow for compiling with Java 21 (#16594) * Support Java 17 and 21, default compilation to Java 17 class files * Add profile "j21" to compile to Java 21 class files * Bump ecj to 3.36.0 Signed-off-by: Holger Friedrich --- pom.xml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index f9f62e97e87fc..271e82aec9d4b 100644 --- a/pom.xml +++ b/pom.xml @@ -64,9 +64,7 @@ UTF-8 UTF-8 17 - ${oh.java.version} - ${oh.java.version} - ${oh.java.version} + ${oh.java.version} 4.2.0-SNAPSHOT 7.0.0 @@ -327,7 +325,7 @@ Import-Package: \\ org.eclipse.jdt ecj - 3.30.0 + 3.36.0 @@ -637,7 +635,7 @@ Import-Package: \\ - [17.0,18.0) + [17.0,18.0),[21.0,22.0) @@ -822,6 +820,13 @@ Import-Package: \\ + + j21 + + 21 + ${oh.java.version} + +