From 5d8f6a377fde6be55957aeed9160fc9a850e7326 Mon Sep 17 00:00:00 2001 From: marcus-j <18111840+marcus-j@users.noreply.github.com> Date: Tue, 12 Nov 2024 09:59:48 +0100 Subject: [PATCH] chore: bumps actions/setup-java to v4 [AI:CoPilot] --- .github/workflows/maven-publish-github.yml | 5 +++-- .github/workflows/maven-publish-maven-central.yml | 5 +++-- .github/workflows/maven.yml | 6 +++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/maven-publish-github.yml b/.github/workflows/maven-publish-github.yml index eda9f2d..0fc5459 100644 --- a/.github/workflows/maven-publish-github.yml +++ b/.github/workflows/maven-publish-github.yml @@ -16,9 +16,10 @@ jobs: - uses: actions/checkout@v4 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: - java-version: 11 + distribution: 'adopt' + java-version: '11' server-id: github # Value of the distributionManagement/repository/id field of the pom.xml settings-path: ${{ github.workspace }} # location for the settings.xml file diff --git a/.github/workflows/maven-publish-maven-central.yml b/.github/workflows/maven-publish-maven-central.yml index 70ff9c0..cda4c9c 100644 --- a/.github/workflows/maven-publish-maven-central.yml +++ b/.github/workflows/maven-publish-maven-central.yml @@ -24,9 +24,10 @@ jobs: gpg --list-secret-keys --keyid-format LONG - name: Set up Java for publishing to Maven Central Repository - uses: actions/setup-java@v1 + uses: actions/setup-java@v4 with: - java-version: 11 + distribution: 'adopt' + java-version: '11' server-id: ossrh server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index b63b9a3..1080dab 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -16,9 +16,9 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up JDK 11 - uses: actions/setup-java@v1 + - uses: actions/setup-java@v4 with: - java-version: 11 + distribution: 'adopt' + java-version: '11' - name: Build with Maven run: mvn -B verify --file pom.xml