diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml
index c237c47c..b1fa0fef 100644
--- a/.github/workflows/publish-snapshot.yml
+++ b/.github/workflows/publish-snapshot.yml
@@ -10,24 +10,18 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - name: Set up Apache Maven Central
- uses: actions/setup-java@v2
+ - uses: actions/checkout@v3
+ - name: Set up JDK 8
+ uses: actions/setup-java@v3
with:
- distribution: 'temurin'
+ distribution: 'zulu'
+ cache: 'maven'
java-version: 8
server-id: oss
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-passphrase: MAVEN_GPG_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
- - name: Cache local Maven repository
- uses: actions/cache@v2
- with:
- path: ~/.m2/repository
- key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
- restore-keys: |
- ${{ runner.os }}-maven-
- name: Publish to the Maven Central Repository
run: |
chmod +x ./deploy.sh
diff --git a/.github/workflows/test-and-build.yml b/.github/workflows/test-and-build.yml
index 40831a21..0397c139 100644
--- a/.github/workflows/test-and-build.yml
+++ b/.github/workflows/test-and-build.yml
@@ -6,35 +6,25 @@ jobs:
name: build on java8
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- name: Set up JDK 8
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v3
with:
+ distribution: 'zulu'
+ cache: 'maven'
java-version: 8
- - name: Cache local Maven repository
- uses: actions/cache@v2
- with:
- path: ~/.m2/repository
- key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
- restore-keys: |
- ${{ runner.os }}-maven-
- name: Build with Maven
run: mvn package
- buildOnJava11:
- name: build on java11
+ buildOnJava21:
+ name: build on java21
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v2
- - name: Set up JDK 11
- uses: actions/setup-java@v1
- with:
- java-version: 11
- - name: Cache local Maven repository
- uses: actions/cache@v2
+ - uses: actions/checkout@v3
+ - name: Set up JDK 8
+ uses: actions/setup-java@v3
with:
- path: ~/.m2/repository
- key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
- restore-keys: |
- ${{ runner.os }}-maven-
+ distribution: 'zulu'
+ cache: 'maven'
+ java-version: 21
- name: Build with Maven
run: mvn package
diff --git a/pom.xml b/pom.xml
index 333aea3e..2986a52e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -28,7 +28,7 @@
5.1.0
2.6.2
5.9.3
- 1.18.26
+ 1.18.30