From ab44662308c498fce44939584f9967ce0898f492 Mon Sep 17 00:00:00 2001 From: eparovyshnaya Date: Wed, 16 Oct 2024 14:06:06 +0300 Subject: [PATCH] [#1449] Switch to Java 21 --- Jenkinsfile | 2 +- tests/org.eclipse.passage.lic.api.tests/build.properties | 1 + tests/org.eclipse.passage.lic.base.tests/build.properties | 2 ++ tests/org.eclipse.passage.lic.bc.tests/build.properties | 2 ++ tests/org.eclipse.passage.lic.emf.tests/build.properties | 2 ++ .../build.properties | 2 ++ tests/org.eclipse.passage.lic.equinox.tests/build.properties | 2 ++ tests/org.eclipse.passage.lic.jface.tests/build.properties | 2 ++ .../build.properties | 2 ++ tests/org.eclipse.passage.lic.oshi.tests/build.properties | 2 ++ tests/org.eclipse.passage.seal.demo.tests/build.properties | 2 ++ 11 files changed, 20 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 88f11fc1f..f43271976 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,7 @@ pipeline { } tools { maven 'apache-maven-latest' - jdk 'openjdk-jdk17-latest' + jdk 'openjdk-jdk21-latest' } parameters { choice( diff --git a/tests/org.eclipse.passage.lic.api.tests/build.properties b/tests/org.eclipse.passage.lic.api.tests/build.properties index fa01af22a..908a3e0e6 100644 --- a/tests/org.eclipse.passage.lic.api.tests/build.properties +++ b/tests/org.eclipse.passage.lic.api.tests/build.properties @@ -16,3 +16,4 @@ output.. = bin/ bin.includes = META-INF/,\ .,\ OSGI-INF/ +jre.compilation.profile = JavaSE-21 diff --git a/tests/org.eclipse.passage.lic.base.tests/build.properties b/tests/org.eclipse.passage.lic.base.tests/build.properties index 11d7d0f5d..dc7f96ee4 100644 --- a/tests/org.eclipse.passage.lic.base.tests/build.properties +++ b/tests/org.eclipse.passage.lic.base.tests/build.properties @@ -16,3 +16,5 @@ output.. = bin/ bin.includes = META-INF/,\ .,\ OSGI-INF/ +jre.compilation.profile = JavaSE-21 + \ No newline at end of file diff --git a/tests/org.eclipse.passage.lic.bc.tests/build.properties b/tests/org.eclipse.passage.lic.bc.tests/build.properties index 11d7d0f5d..dc7f96ee4 100644 --- a/tests/org.eclipse.passage.lic.bc.tests/build.properties +++ b/tests/org.eclipse.passage.lic.bc.tests/build.properties @@ -16,3 +16,5 @@ output.. = bin/ bin.includes = META-INF/,\ .,\ OSGI-INF/ +jre.compilation.profile = JavaSE-21 + \ No newline at end of file diff --git a/tests/org.eclipse.passage.lic.emf.tests/build.properties b/tests/org.eclipse.passage.lic.emf.tests/build.properties index fa01af22a..3485a2179 100644 --- a/tests/org.eclipse.passage.lic.emf.tests/build.properties +++ b/tests/org.eclipse.passage.lic.emf.tests/build.properties @@ -16,3 +16,5 @@ output.. = bin/ bin.includes = META-INF/,\ .,\ OSGI-INF/ +jre.compilation.profile = JavaSE-21 + \ No newline at end of file diff --git a/tests/org.eclipse.passage.lic.equinox.tests.data.requirements/build.properties b/tests/org.eclipse.passage.lic.equinox.tests.data.requirements/build.properties index 8da4007cc..67391fcdb 100644 --- a/tests/org.eclipse.passage.lic.equinox.tests.data.requirements/build.properties +++ b/tests/org.eclipse.passage.lic.equinox.tests.data.requirements/build.properties @@ -17,3 +17,5 @@ bin.includes = META-INF/,\ .,\ OSGI-INF/,\ comp_lics/ +jre.compilation.profile = JavaSE-21 + \ No newline at end of file diff --git a/tests/org.eclipse.passage.lic.equinox.tests/build.properties b/tests/org.eclipse.passage.lic.equinox.tests/build.properties index 11d7d0f5d..dc7f96ee4 100644 --- a/tests/org.eclipse.passage.lic.equinox.tests/build.properties +++ b/tests/org.eclipse.passage.lic.equinox.tests/build.properties @@ -16,3 +16,5 @@ output.. = bin/ bin.includes = META-INF/,\ .,\ OSGI-INF/ +jre.compilation.profile = JavaSE-21 + \ No newline at end of file diff --git a/tests/org.eclipse.passage.lic.jface.tests/build.properties b/tests/org.eclipse.passage.lic.jface.tests/build.properties index 44565f399..f4a544e8c 100644 --- a/tests/org.eclipse.passage.lic.jface.tests/build.properties +++ b/tests/org.eclipse.passage.lic.jface.tests/build.properties @@ -16,3 +16,5 @@ output.. = bin/ bin.includes = META-INF/,\ .,\ OSGI-INF/ +jre.compilation.profile = JavaSE-21 + \ No newline at end of file diff --git a/tests/org.eclipse.passage.lic.licenses.model.tests/build.properties b/tests/org.eclipse.passage.lic.licenses.model.tests/build.properties index fa01af22a..3485a2179 100644 --- a/tests/org.eclipse.passage.lic.licenses.model.tests/build.properties +++ b/tests/org.eclipse.passage.lic.licenses.model.tests/build.properties @@ -16,3 +16,5 @@ output.. = bin/ bin.includes = META-INF/,\ .,\ OSGI-INF/ +jre.compilation.profile = JavaSE-21 + \ No newline at end of file diff --git a/tests/org.eclipse.passage.lic.oshi.tests/build.properties b/tests/org.eclipse.passage.lic.oshi.tests/build.properties index 11d7d0f5d..dc7f96ee4 100644 --- a/tests/org.eclipse.passage.lic.oshi.tests/build.properties +++ b/tests/org.eclipse.passage.lic.oshi.tests/build.properties @@ -16,3 +16,5 @@ output.. = bin/ bin.includes = META-INF/,\ .,\ OSGI-INF/ +jre.compilation.profile = JavaSE-21 + \ No newline at end of file diff --git a/tests/org.eclipse.passage.seal.demo.tests/build.properties b/tests/org.eclipse.passage.seal.demo.tests/build.properties index fa01af22a..3485a2179 100644 --- a/tests/org.eclipse.passage.seal.demo.tests/build.properties +++ b/tests/org.eclipse.passage.seal.demo.tests/build.properties @@ -16,3 +16,5 @@ output.. = bin/ bin.includes = META-INF/,\ .,\ OSGI-INF/ +jre.compilation.profile = JavaSE-21 + \ No newline at end of file