diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c4b902e59..018b9a44c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,19 +8,14 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 2 - name: Setup JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: 17 - - 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- + distribution: 'temurin' + cache: 'maven' - name: mvn build - run: ./mvnw clean install -Djib.skip -B + run: ./mvnw clean install -Djib.skip -B -ntp diff --git a/.github/workflows/release-patch.yml b/.github/workflows/release-patch.yml index c212ee59f..ae8d62af3 100644 --- a/.github/workflows/release-patch.yml +++ b/.github/workflows/release-patch.yml @@ -8,18 +8,18 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 # We need a personal access token to be able to push to a protected branch token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} - name: Setup JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: java-version: 17 java-package: jdk - distribution: adopt + distribution: 'temurin' architecture: x64 # this also creates settings.xml with the following server server-id: sonatype-nexus-staging # Value of the distributionManagement/repository/id field of the pom.xml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 12498cbf2..73236ac05 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,18 +18,18 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 # We need a personal access token to be able to push to a protected branch token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} - name: Setup JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: java-version: 17 java-package: jdk - distribution: adopt + distribution: 'temurin' architecture: x64 # this also creates settings.xml with the following server server-id: sonatype-nexus-staging # Value of the distributionManagement/repository/id field of the pom.xml