From 3796c68813327f2a4d2b357c16cc09b3e64cf11d Mon Sep 17 00:00:00 2001 From: Belal Ansari Date: Fri, 5 Sep 2025 14:02:26 +0530 Subject: [PATCH] ACS-10095 Upgrade core ACS repositories to Java 21 --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index adda7f1d5..f32bf4b1c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,7 @@ on: workflow_dispatch: env: + JAVA_VERSION: "21" GIT_USERNAME: ${{ secrets.BOT_GITHUB_USERNAME }} GIT_EMAIL: ${{ secrets.BOT_GITHUB_EMAIL }} GIT_PASSWORD: ${{ secrets.BOT_GITHUB_TOKEN }} @@ -43,6 +44,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.16.0 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.16.0 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.16.0 + with: + java-version: ${{ env.JAVA_VERSION }} - uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@v8.16.0 tas_tests: @@ -93,6 +96,8 @@ jobs: - uses: actions/checkout@v4 - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.16.0 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.16.0 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Init" timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} run: | @@ -115,6 +120,8 @@ jobs: - uses: actions/checkout@v4 - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.16.0 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.16.0 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Init" timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} run: | @@ -140,6 +147,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.16.0 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.16.0 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.16.0 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Build" timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} run: | @@ -178,6 +187,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.16.0 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.16.0 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.16.0 + with: + java-version: ${{ env.JAVA_VERSION }} - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: "Init" @@ -212,6 +223,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.16.0 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.16.0 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.16.0 + with: + java-version: ${{ env.JAVA_VERSION }} - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: "Init"