From d34f7d5cb7e60a650324ecb36a23f308ee8d6b5a Mon Sep 17 00:00:00 2001 From: "youji.zzl" Date: Sat, 16 Sep 2023 11:22:23 +0800 Subject: [PATCH] update jdk --- .github/workflows/arklet_release.yml | 4 +- .github/workflows/arklet_unit_test.yml | 15 +---- arklet/pom.xml | 87 ++++++++------------------ 3 files changed, 30 insertions(+), 76 deletions(-) diff --git a/.github/workflows/arklet_release.yml b/.github/workflows/arklet_release.yml index 72cd26155..819ff159f 100644 --- a/.github/workflows/arklet_release.yml +++ b/.github/workflows/arklet_release.yml @@ -20,7 +20,7 @@ jobs: uses: actions/setup-java@v3 with: java-version: '8' - distribution: 'adopt' + distribution: 'temurin' cache: maven - name: Build with Maven run: mvn clean install -Pci-install -B -U -e && bash ./tools/check_format.sh @@ -33,7 +33,7 @@ jobs: uses: actions/setup-java@v3 with: java-version: '8' - distribution: 'adopt' + distribution: 'temurin' cache: maven server-id: ossrh server-username: MAVEN_USERNAME diff --git a/.github/workflows/arklet_unit_test.yml b/.github/workflows/arklet_unit_test.yml index 2a33e6769..f212424e1 100644 --- a/.github/workflows/arklet_unit_test.yml +++ b/.github/workflows/arklet_unit_test.yml @@ -29,23 +29,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Setup Java JDK - uses: actions/setup-java@v3.12.0 + uses: actions/setup-java@v3 with: distribution: adopt java-version: 8 - - - name: Setup Maven - uses: stCarolas/setup-maven@v.4.5 - with: - maven-version: 3.9.4 - - - name: Cache Maven dependencies - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + cache: maven - name: Test run: mvn clean install -DskipTests -Dmaven.javadoc.skip=true -B -U diff --git a/arklet/pom.xml b/arklet/pom.xml index 2cc77e4b1..14f7266f6 100644 --- a/arklet/pom.xml +++ b/arklet/pom.xml @@ -340,6 +340,22 @@ release + + org.apache.maven.plugins + maven-javadoc-plugin + 2.9.1 + + + attach-javadocs + + jar + + + -Xdoclint:none + + + + org.sonatype.plugins nexus-staging-maven-plugin @@ -364,10 +380,20 @@ + + + --pinentry-mode + loopback + + + + ossrh + https://oss.sonatype.org/content/repositories/snapshots + ossrh https://oss.sonatype.org/service/local/staging/deploy/maven2/ @@ -437,67 +463,6 @@ https://oss.sonatype.org/content/repositories/snapshots - - - - org.apache.maven.plugins - maven-javadoc-plugin - 2.9.1 - - - attach-javadocs - - jar - - - -Xdoclint:none - - - - - - org.sonatype.plugins - nexus-staging-maven-plugin - ${maven.staging.plugin} - true - - ossrh - https://oss.sonatype.org/ - false - - - - org.apache.maven.plugins - maven-gpg-plugin - ${maven.gpg.pluign} - - - sign-artifacts - verify - - sign - - - - - - --pinentry-mode - loopback - - - - - - - - ossrh - https://oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - -