From 62f3765e09dd9cf0ab28cd49fb97171236434326 Mon Sep 17 00:00:00 2001 From: Giovanni Fertuso <44156864+Giovanni007@users.noreply.github.com> Date: Tue, 19 Sep 2023 15:51:55 +0100 Subject: [PATCH] AAE-16642 Update java version used in maven-release (#328) --- .github/actions/maven-release/action.yml | 14 +++++++++++--- version.txt | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/actions/maven-release/action.yml b/.github/actions/maven-release/action.yml index 3fb5141a7..ac5850d5c 100644 --- a/.github/actions/maven-release/action.yml +++ b/.github/actions/maven-release/action.yml @@ -46,6 +46,14 @@ inputs: description: "Path to the settings.xml file to be used for the release" required: false default: ${{ github.workspace }}/maven-config/settings.xml + java-version: + description: the desired Java version + required: false + default: "11" + java-distribution: + description: the desired Java distribution + required: false + default: "temurin" runs: using: composite @@ -73,12 +81,12 @@ runs: tag: ${{ env.RELEASE_VERSION }} repository-directory: ${{ env.REPO_DIR }} - - name: Set up JDK 11 + - name: Set up JDK if: steps.check-tag.outputs.exists == 'false' uses: actions/setup-java@v3 with: - distribution: temurin - java-version: 11 + java-version: ${{ inputs.java-version }} + distribution: ${{ inputs.java-distribution }} cache: 'maven' - name: Configure Maven settings diff --git a/version.txt b/version.txt index b299be978..15ee400bd 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -v3.3.0 +v3.3.1