diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3bd7c9f27f..bdf949431a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,7 @@ on: workflow_dispatch: env: + JAVA_VERSION: '21' DOCKERHUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} DOCKERHUB_USERNAME: ${{ secrets.DOCKER_USERNAME }} GITHUB_ACTIONS_DEPLOY_TIMEOUT: 60 @@ -44,6 +45,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@v8.24.1 - name: "Init" run: bash ./scripts/ci/init.sh @@ -65,6 +68,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Init" run: bash ./scripts/ci/init.sh - uses: Alfresco/alfresco-build-tools/.github/actions/veracode@v8.24.1 @@ -88,6 +93,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - uses: Alfresco/alfresco-build-tools/.github/actions/github-download-file@v8.24.1 with: token: ${{ secrets.BOT_GITHUB_TOKEN }} @@ -144,6 +151,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - uses: Alfresco/ya-pmd-scan@v4.3.0 with: classpath-build-command: "mvn test-compile -ntp -Pags -pl \"-:alfresco-community-repo-docker\"" @@ -177,6 +186,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Init" run: bash ./scripts/ci/init.sh - name: "Run tests" @@ -214,6 +225,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Build" timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} run: | @@ -249,6 +262,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Init" run: bash ./scripts/ci/init.sh - name: Run MariaDB ${{ matrix.version }} database @@ -276,6 +291,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Init" run: bash ./scripts/ci/init.sh - name: "Run MariaDB 10.11 database" @@ -303,6 +320,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Init" run: bash ./scripts/ci/init.sh - name: "Run MySQL 8 database" @@ -329,6 +348,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Init" run: bash ./scripts/ci/init.sh - name: "Run PostgreSQL 14.15 database" @@ -355,6 +376,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Init" run: bash ./scripts/ci/init.sh - name: "Run PostgreSQL 15.10 database" @@ -381,6 +404,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Init" run: bash ./scripts/ci/init.sh - name: "Run PostgreSQL 16.6 database" @@ -405,6 +430,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Init" run: bash ./scripts/ci/init.sh - name: "Run ActiveMQ" @@ -461,6 +488,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Init" run: bash ./scripts/ci/init.sh - name: "Set transformers tag" @@ -531,6 +560,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Build" timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} run: | @@ -570,6 +601,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Init" run: bash ./scripts/ci/init.sh - name: "Run Postgres 16.6 database" @@ -600,6 +633,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Build" timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} run: | @@ -632,6 +667,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Build" timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} run: | @@ -660,6 +697,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Build" timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} run: | @@ -706,6 +745,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Build" timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} run: | diff --git a/.github/workflows/master_release.yml b/.github/workflows/master_release.yml index 78a599739c..f447e66f40 100644 --- a/.github/workflows/master_release.yml +++ b/.github/workflows/master_release.yml @@ -7,6 +7,7 @@ on: - release/** env: + JAVA_VERSION: '21' GIT_USERNAME: ${{ secrets.BOT_GITHUB_USERNAME }} GIT_EMAIL: ${{ secrets.BOT_GITHUB_EMAIL }} GIT_PASSWORD: ${{ secrets.BOT_GITHUB_TOKEN }} @@ -37,6 +38,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Init" run: bash ./scripts/ci/init.sh - uses: Alfresco/alfresco-build-tools/.github/actions/configure-git-author@v8.24.1 @@ -66,6 +69,8 @@ jobs: - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v8.24.1 - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v8.24.1 + with: + java-version: ${{ env.JAVA_VERSION }} - name: "Init" run: bash ./scripts/ci/init.sh - uses: Alfresco/alfresco-build-tools/.github/actions/configure-git-author@v8.24.1 diff --git a/.secrets.baseline b/.secrets.baseline index c2e187e741..5a122981d4 100644 --- a/.secrets.baseline +++ b/.secrets.baseline @@ -133,7 +133,7 @@ "filename": ".github/workflows/master_release.yml", "hashed_secret": "3e26d6750975d678acb8fa35a0f69237881576b0", "is_verified": false, - "line_number": 24, + "line_number": 25, "is_secret": false } ], @@ -1845,5 +1845,5 @@ } ] }, - "generated_at": "2025-06-09T16:43:14Z" + "generated_at": "2025-09-04T08:27:43Z" } diff --git a/packaging/docker-alfresco/Dockerfile b/packaging/docker-alfresco/Dockerfile index b3c50ed5a6..82afc08223 100644 --- a/packaging/docker-alfresco/Dockerfile +++ b/packaging/docker-alfresco/Dockerfile @@ -1,5 +1,5 @@ # More infos about this image: https://github.com/Alfresco/alfresco-docker-base-tomcat -FROM alfresco/alfresco-base-tomcat:tomcat10-jre17-rockylinux9@sha256:00d89fb84bda7bb37c17b0117adb2cfe4f7cbddcd6c1e42b0a67ea8dbb41a734 +FROM alfresco/alfresco-base-tomcat:tomcat10-jre21-rockylinux9@sha256:ed568167f4c28efc9db4c5bc44a882ee117c475463b526b21ada99e1b6d568dd # Set default docker_context. ARG resource_path=target diff --git a/packaging/tests/tas-cmis/pom.xml b/packaging/tests/tas-cmis/pom.xml index f5716d9b69..d6eb3058ea 100644 --- a/packaging/tests/tas-cmis/pom.xml +++ b/packaging/tests/tas-cmis/pom.xml @@ -16,11 +16,11 @@ - 17 + 21 UTF-8 3.1.1 2.5.3 - 17 + 21 ${project.basedir}/src/test/resources/cmis-suite.xml diff --git a/packaging/tests/tas-restapi/pom.xml b/packaging/tests/tas-restapi/pom.xml index 548a23037a..a026e10adc 100644 --- a/packaging/tests/tas-restapi/pom.xml +++ b/packaging/tests/tas-restapi/pom.xml @@ -13,13 +13,13 @@ ${project.basedir}/src/test/resources/restapi-suite.xml - 17 + 21 UTF-8 master 4.5.6 3.18.0 8.3.3 - 17 + 21 diff --git a/pom.xml b/pom.xml index 690e6135d5..5398b1c2f3 100644 --- a/pom.xml +++ b/pom.xml @@ -38,7 +38,7 @@ entitled-builder 127.0.0.1:5000 - 17 + 21 ${java.version} ${java.version} ${java.version} diff --git a/repository/pom.xml b/repository/pom.xml index 3b819e58c4..ce665ec781 100644 --- a/repository/pom.xml +++ b/repository/pom.xml @@ -840,12 +840,12 @@ - 17 + ${java.version} false true true - 17 - 17 + ${java.version} + ${java.version} -parameters