From 9d14ab9c32c8130b3aab471fb30a0aea5cc77a04 Mon Sep 17 00:00:00 2001 From: Woder <17339354+wode490390@users.noreply.github.com> Date: Wed, 6 Dec 2023 20:30:36 +0800 Subject: [PATCH] Community compatibility --- .github/workflows/maven.yml | 30 ++++++++++++++++++++++++++++++ pom.xml | 16 ++++++++++++++-- 2 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 00000000..b873bfc6 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +name: Java CI + +on: + push: + workflow_dispatch: + +jobs: + build: + name: Java ${{ matrix.java }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + java: + [ + 8, + 17, + 21, + ] + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java }} + distribution: temurin + cache: maven + - name: Build with Maven + run: mvn -B clean package diff --git a/pom.xml b/pom.xml index 39574115..7a6daccf 100644 --- a/pom.xml +++ b/pom.xml @@ -19,8 +19,8 @@ - 17 - 17 + 1.8 + 1.8 UTF-8 HHmm-ddMMyyyy 4.1.100.Final @@ -149,6 +149,18 @@ + + java17 + + + 17 + + + + 17 + 17 + + java21