From 074a412f818417fa556922cd2cedaa571616739d Mon Sep 17 00:00:00 2001 From: dupeng Date: Fri, 23 Aug 2024 14:56:30 +0800 Subject: [PATCH] [KYUUBI #5314] Support JDK 21 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # :mag: Description ## Issue References 🔗 This pull request fixes #5314 ## Describe Your Solution 🔧 To support Java 21, some dependency packages need to be upgraded.Here is the detailed explanation. 1. To build with Java 21, Scala binary version needs to be upgraded to 2.13.11 or above. 2. The versions of `spotless` and `googlejavaformat` need to be upgraded to higher versions. However, this will lose support for Java 8. In order to continue supporting Java 8, code style checks will be ignored in the Java 21 profile. 3. Since the Flink engine does not support Scala 2.13, the Scala version of the Flink module is fixed at 2.12. Previous discussions were at https://github.com/apache/kyuubi/pull/6306. --- ## Types of changes :bookmark: - [ ] Bugfix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) --- **Be nice. Be informative.** Closes #6597 from dupen01/issue-java21. Closes #5314 0c5a9e455 [Cheng Pan] simplify 54cbadf79 [dupeng] java21+scala2.13.11+flink_2.12+CI(spark4,21,2,13) Lead-authored-by: dupeng Co-authored-by: Cheng Pan Signed-off-by: Cheng Pan --- .github/workflows/master.yml | 2 +- pom.xml | 23 ++++++++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index c80e387cb..b4794b8de 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -55,7 +55,7 @@ jobs: exclude-tags: [""] comment: ["normal"] include: - - java: 17 + - java: 21 spark: '4.0' spark-archive: '-Pscala-2.13' exclude-tags: '' diff --git a/pom.xml b/pom.xml index d02d8c476..66c5bd73d 100644 --- a/pom.xml +++ b/pom.xml @@ -236,6 +236,7 @@ org.scalatest.tags.Slow false + 2.30.0 3.2.1 0.8.11 @@ -255,7 +256,8 @@ org.apache.kyuubi.shade - + 1.7 22.3.0 @@ -1927,6 +1929,25 @@ + + java-21 + + 21 + + + 21 + + + ${java.version} + + 2.43.0 + true + 1.22.0 + + + scala-2.12