From 1ef0551b1e89c3fb3487ca7b698c49b1ee5aa5bd Mon Sep 17 00:00:00 2001 From: Jimmy Lin Date: Wed, 3 Apr 2024 21:46:19 -0400 Subject: [PATCH] Upgrade to JDK 21 (#2410) --- .github/workflows/maven.yml | 7 ++----- pom.xml | 38 ++++++++++++++++++++++++------------- 2 files changed, 27 insertions(+), 18 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 5bc5650526..6e356078b2 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,6 +1,3 @@ -# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven - name: Java CI with Maven on: @@ -16,10 +13,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 11 + - name: Set up JDK 21 uses: actions/setup-java@v2 with: - java-version: '11' + java-version: '21' distribution: 'adopt' cache: maven - name: Build with Maven diff --git a/pom.xml b/pom.xml index a1fd80c481..f278ac710f 100644 --- a/pom.xml +++ b/pom.xml @@ -78,12 +78,12 @@ org.apache.maven.plugins maven-compiler-plugin - 3.8.1 + 3.12.1 - 11 - 11 - 11 - 11 + 21 + 21 + 21 + 21 true -Xlint:unchecked @@ -103,7 +103,7 @@ appassembler-maven-plugin 2.1.0 - -Xms512M -Xmx31G + -Xms512M -Xmx31G --add-modules jdk.incubator.vector flat true @@ -169,7 +169,7 @@ org.apache.maven.plugins maven-source-plugin - 3.2.1 + 3.3.0 attach-sources @@ -182,7 +182,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.1 + 3.6.3 attach-javadocs @@ -195,10 +195,22 @@ + + org.apache.maven.plugins + maven-jar-plugin + 3.3.0 + + + + true + + + + org.apache.maven.plugins maven-shade-plugin - 3.2.4 + 3.5.2 - + true fatjar @@ -287,7 +299,7 @@ org.apache.maven.plugins maven-assembly-plugin - 2.6 + 3.7.0 @@ -505,4 +517,4 @@ 1.15 - \ No newline at end of file +