From 88429d7b6c028b5d59b56a00695010089a566fb1 Mon Sep 17 00:00:00 2001 From: Vladimir Sitnikov Date: Thu, 4 Jan 2024 21:58:22 +0300 Subject: [PATCH] chore: set Java target to 17 --- .github/workflows/matrix.js | 21 ------------------- build-logic/build-parameters/build.gradle.kts | 2 +- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/.github/workflows/matrix.js b/.github/workflows/matrix.js index bf22ef42a55..ba4364eb1f0 100644 --- a/.github/workflows/matrix.js +++ b/.github/workflows/matrix.js @@ -26,8 +26,6 @@ matrix.addAxis({ name: 'java_version', // Strings allow versions like 18-ea values: [ - '8', - '11', '17', '21', eaJava, @@ -80,12 +78,6 @@ matrix.setNamePattern(['java_version', 'java_distribution', 'hash', 'os', 'tz', // Semeru uses OpenJ9 jit which has no option for making hash codes the same matrix.exclude({java_distribution: {value: 'semeru'}, hash: {value: 'same'}}); -// Semeru 8 fails when Semeru 17 is on the PATH (we use 17 for build) -matrix.exclude({java_distribution: {value: 'semeru'}, java_version: '8'}); -// Microsoft Java has no distribution for 8 -matrix.exclude({java_distribution: {value: 'microsoft'}, java_version: '8'}); -// Oracle JDK is only supported for JDK 17 and later -matrix.exclude({java_distribution: {value: 'oracle'}, java_version: ['8', '11']}); // Ignore builds with JAVA EA for now, see https://github.com/apache/jmeter/issues/6114 matrix.exclude({java_version: eaJava}) matrix.imply({java_version: eaJava}, {java_distribution: {value: 'oracle'}}) @@ -97,10 +89,6 @@ matrix.generateRow({hash: {value: 'same'}}); matrix.generateRow({os: 'windows-latest'}); // TODO: un-comment when xvfb will be possible // matrix.generateRow({os: 'ubuntu-latest'}); -// Ensure there will be at least one job with Java 8 -matrix.generateRow({java_version: "8"}); -// Ensure there will be at least one job with Java 11 -matrix.generateRow({java_version: "11"}); // Ensure there will be at least one job with Java 17 matrix.generateRow({java_version: "17"}); // Ensure there will be at least one job with Java 21 @@ -119,15 +107,6 @@ include.forEach(v => { `-Duser.country=${v.locale.country}`, `-Duser.language=${v.locale.language}`, ]; - if (v.hash.value === 'same' && v.java_version <= 8) { - // processSiteXslt fails with VerifyError when running with Java 8 and the same hashcode - // Skip the task in that case - //java.lang.VerifyError: (class: website_style, method: issue_separator signature: (Lcom/sun/org/apache/xala...) - // Illegal target of jump or branch - gradleArgs.push('-x :src:dist:processSiteXslt'); - // javadoc tool seems take too much CPU when there are many hash collisions - gradleArgs.push('-x :src:dist:javadocAggregate'); - } v.extraGradleArgs = gradleArgs.join(' '); }); include.forEach(v => { diff --git a/build-logic/build-parameters/build.gradle.kts b/build-logic/build-parameters/build.gradle.kts index 32db188ef63..5c83b3d0cf3 100644 --- a/build-logic/build-parameters/build.gradle.kts +++ b/build-logic/build-parameters/build.gradle.kts @@ -38,7 +38,7 @@ buildParameters { description.set("Collect test coverage") } integer("targetJavaVersion") { - defaultValue.set(8) + defaultValue.set(17) mandatory.set(true) description.set("Java version for source and target compatibility") }