From 58678d2c3eec109e5844c90315d67538ac642086 Mon Sep 17 00:00:00 2001 From: Martin Ledvinka Date: Fri, 7 Jun 2024 10:46:02 +0200 Subject: [PATCH] [GH-1] Fix incorrect target release, unify Java distribution in all actions. --- .github/workflows/deploy-to-maven.yml | 4 ++-- .github/workflows/pull-request-to-main.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-to-maven.yml b/.github/workflows/deploy-to-maven.yml index 1717493..70d4d85 100644 --- a/.github/workflows/deploy-to-maven.yml +++ b/.github/workflows/deploy-to-maven.yml @@ -21,7 +21,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 with: - java-version: '17' + java-version: '21' distribution: 'temurin' # Runs a set of commands using the runners shell @@ -32,7 +32,7 @@ jobs: uses: actions/setup-java@v4 with: # running setup-java again overwrites the settings.xml distribution: 'temurin' - java-version: '17' + java-version: '21' server-id: akaene # Value of the distributionManagement/repository/id field of the pom.xml server-username: MAVEN_USERNAME # env variable for username in deploy server-password: MAVEN_PASSWORD # env variable for password in deploy diff --git a/.github/workflows/pull-request-to-main.yml b/.github/workflows/pull-request-to-main.yml index a1d2fc7..fb54cf1 100644 --- a/.github/workflows/pull-request-to-main.yml +++ b/.github/workflows/pull-request-to-main.yml @@ -21,8 +21,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-java@v4 with: - java-version: '17' - distribution: 'adopt' + java-version: '21' + distribution: 'temurin' # Runs a set of commands using the runners shell - name: Test