diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 6b88727..72df599 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -18,15 +18,16 @@ jobs: java: ['11', '17', '21'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up JDK ${{matrix.java}} - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: java-version: ${{matrix.java}} + distribution: corretto - name: Maven -v run: ./mvnw -v - name: Cache Maven packages - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index abc17b0..84de88c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,12 +9,12 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Java - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: java-version: '11' - distribution: 'adopt' + distribution: 'corretto' - name: Publish package env: JRELEASER_NEXUS2_USERNAME: ${{ secrets.JRELEASER_NEXUS2_USERNAME }}