Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

ci: use preinstalled JDK 25 across GitHub Actions workflows (#7671)

Ludy9e6801db3f31
diff --git a/.github/actions/java/action.yml b/.github/actions/java/action.yml
new file mode 100644
index 0000000000..a2f54e2ccf
--- /dev/null
+++ b/.github/actions/java/action.yml
@@ -0,0 +1,147 @@
+name: Local Java
+description: Configure the JDK already installed on the GitHub Actions runner
+inputs:
+ java-version:
+ description: JDK major version
+ required: false
+ default: "25"
+ distribution:
+ description: Java distribution to use
+ required: false
+ default: temurin
+ architecture:
+ description: Target architecture (x64 or arm64)
+ required: false
+ default: ""
+runs:
+ using: composite
+ steps:
+ - name: Configure preinstalled JDK
+ shell: bash
+ env:
+ JAVA_VERSION: ${{ inputs.java-version }}
+ JAVA_DISTRIBUTION: ${{ inputs.distribution }}
+ JAVA_ARCHITECTURE: ${{ inputs.architecture }}
+ RUNNER_ARCHITECTURE: ${{ runner.arch }}
+ RUNNER_OS_NAME: ${{ runner.os }}
+ TEMURIN_VERSION: 25.0.4+7
+ TEMURIN_RELEASE_TAG: jdk-25.0.4%2B7
+ TEMURIN_X64_ARCHIVE: OpenJDK25U-jdk_x64_mac_hotspot_25.0.4_7.tar.gz
+ TEMURIN_X64_SHA256: a5ac9c46dad47ac06df35e36d096913195d8da1f3f71918828bcc2cfe33869b7
+ TEMURIN_ARM64_ARCHIVE: OpenJDK25U-jdk_aarch64_mac_hotspot_25.0.4_7.tar.gz
+ TEMURIN_ARM64_SHA256: 5a101c54abf5a9f16c0f70d8c38ba99e6567c1ba213378f0bb04497284f051bd
+ run: |
+ set -euo pipefail
+ if [ "${JAVA_VERSION}" != "25" ]; then
+ echo "This repository requires JDK 25; received ${JAVA_VERSION}" >&2
+ exit 1
+ fi
+
+ distribution="$(printf '%s' "${JAVA_DISTRIBUTION}" | tr '[:upper:]' '[:lower:]')"
+ case "${distribution}" in
+ temurin|microsoft) ;;
+ *)
+ echo "Unsupported Java distribution: ${JAVA_DISTRIBUTION}. Supported: temurin, microsoft" >&2
+ exit 1
+ ;;
+ esac
+
+ java_home_is_valid() {
+ candidate="$1"
+ [ -x "${candidate}/bin/java" ] || return 1
+ version_output="$(${candidate}/bin/java -version 2>&1)"
+ printf '%s\n' "${version_output}" | grep -Eq "version \"${JAVA_VERSION}(\\.|\")" || return 1
+ case "${distribution}" in
+ temurin) printf '%s\n' "${version_output}" | grep -Eiq "Temurin|Eclipse Adoptium" ;;
+ microsoft) printf '%s\n' "${version_output}" | grep -Eiq "Microsoft" ;;
+ esac
+ }
+
+ architecture="${JAVA_ARCHITECTURE}"
+ if [ -z "${architecture}" ]; then
+ architecture="${RUNNER_ARCHITECTURE}"
+ fi
+ normalized_architecture="$(printf '%s' "${architecture}" | tr '[:lower:]' '[:upper:]')"
+ case "${normalized_architecture}" in
+ X64|AMD64|X86_64) architecture=X64 ;;
+ ARM64|AARCH64) architecture=ARM64 ;;
+ *) echo "Unsupported runner architecture: ${architecture}" >&2; exit 1 ;;
+ esac
+
+ runner_architecture="$(printf '%s' "${RUNNER_ARCHITECTURE}" | tr '[:lower:]' '[:upper:]')"
+ if [ "${RUNNER_OS_NAME}" = "macOS" ] && [ -n "${JAVA_HOME:-}" ]; then
+ runner_java_binary="${JAVA_HOME}/bin/java"
+ if [ "${runner_architecture}" = "ARM64" ] && file "${runner_java_binary}" | grep -q "arm64"; then
+ echo "JAVA_HOME_${JAVA_VERSION}_ARM64=${JAVA_HOME}" >> "${GITHUB_ENV}"
+ elif [ "${runner_architecture}" = "X64" ] && file "${runner_java_binary}" | grep -q "x86_64"; then
+ echo "JAVA_HOME_${JAVA_VERSION}_X64=${JAVA_HOME}" >> "${GITHUB_ENV}"
+ fi
+ fi
+
+ java_home_variable="JAVA_HOME_${JAVA_VERSION}_${architecture}"
+ java_home="${!java_home_variable:-}"
+ if [ -z "${java_home}" ] && [ "${RUNNER_OS_NAME}" = "macOS" ]; then
+ if [ "${architecture}" = "${runner_architecture}" ] && [ -n "${JAVA_HOME:-}" ]; then
+ java_home="${JAVA_HOME}"
+ fi
+ fi
+ if [ -z "${java_home}" ] && [ "${RUNNER_OS_NAME}" = "macOS" ] && [ "${architecture}" = "X64" ] && [ "${distribution}" = "temurin" ]; then
+ java_home="$(arch -x86_64 /usr/libexec/java_home -v "${JAVA_VERSION}" 2>/dev/null || true)"
+ fi
+ if [ -n "${java_home}" ] && [ "${RUNNER_OS_NAME}" = "macOS" ]; then
+ java_binary="${java_home}/bin/java"
+ if [ "${architecture}" = "X64" ] && ! file "${java_binary}" | grep -q "x86_64"; then
+ java_home=""
+ elif [ "${architecture}" = "ARM64" ] && ! file "${java_binary}" | grep -q "arm64"; then
+ java_home=""
+ fi
+ fi
+ if [ -n "${java_home}" ] && ! java_home_is_valid "${java_home}"; then
+ echo "Ignoring ${java_home_variable}: it does not provide ${distribution} JDK ${JAVA_VERSION}" >&2
+ java_home=""
+ fi
+ if [ -z "${java_home}" ] && [ "${RUNNER_OS_NAME}" = "macOS" ] && [ "${distribution}" = "temurin" ] && { [ "${architecture}" = "X64" ] || [ "${architecture}" = "ARM64" ]; }; then
+ jdk_version="${TEMURIN_VERSION}"
+ if [ "${architecture}" = "X64" ]; then
+ jdk_archive="${TEMURIN_X64_ARCHIVE}"
+ jdk_sha256="${TEMURIN_X64_SHA256}"
+ else
+ jdk_archive="${TEMURIN_ARM64_ARCHIVE}"
+ jdk_sha256="${TEMURIN_ARM64_SHA256}"
+ fi
+ jdk_root="${RUNNER_TEMP}/stirling-temurin-${jdk_version}-${architecture}"
+ archive_path="${jdk_root}/${jdk_archive}"
+ mkdir -p "${jdk_root}"
+ if [ ! -f "${archive_path}" ]; then
+ curl --fail --location --retry 3 --retry-delay 2 \
+ --output "${archive_path}" \
+ "https://github.com/adoptium/temurin25-binaries/releases/download/${TEMURIN_RELEASE_TAG}/${jdk_archive}"
+ fi
+ printf '%s %s\n' "${jdk_sha256}" "${archive_path}" | shasum -a 256 -c -
+ if [ ! -x "${jdk_root}/Contents/Home/bin/jlink" ]; then
+ rm -rf "${jdk_root}/Contents"
+ tar -xzf "${archive_path}" -C "${jdk_root}"
+ fi
+ java_home="$(find "${jdk_root}" -type d -path '*/Contents/Home' -print -quit)"
+ fi
+ if [ -z "${java_home}" ]; then
+ echo "JDK ${JAVA_VERSION} (${distribution}, ${architecture}) is not installed on this runner (${java_home_variable} is missing)" >&2
+ exit 1
+ fi
+
+ shell_java_home="${java_home}"
+ if command -v cygpath >/dev/null 2>&1; then
+ shell_java_home="$(cygpath --unix "${java_home}")"
+ fi
+
+ export JAVA_HOME="${shell_java_home}"
+ export PATH="${shell_java_home}/bin:${PATH}"
+ echo "JAVA_HOME_${JAVA_VERSION}_${architecture}=${java_home}" >> "${GITHUB_ENV}"
+ echo "JAVA_HOME=${java_home}" >> "${GITHUB_ENV}"
+ echo "${java_home}/bin" >> "${GITHUB_PATH}"
+ java -version 2>&1 | tee "${RUNNER_TEMP}/java-version.txt"
+ case "${distribution}" in
+ temurin) grep -Eiq "Temurin|Eclipse Adoptium" "${RUNNER_TEMP}/java-version.txt" ;;
+ microsoft) grep -Eiq "Microsoft" "${RUNNER_TEMP}/java-version.txt" ;;
+ esac
+ grep -Eq "version \"${JAVA_VERSION}(\.|\")" "${RUNNER_TEMP}/java-version.txt"
diff --git a/.github/workflows/PR-Demo-Comment-with-react.yml b/.github/workflows/PR-Demo-Comment-with-react.yml
index 47ddeb4e1d..9d5942f203 100644
--- a/.github/workflows/PR-Demo-Comment-with-react.yml
+++ b/.github/workflows/PR-Demo-Comment-with-react.yml
@@ -200,10 +200,9 @@ jobs:
key: gradle-deploy-pr-v1-${{ runner.os }}-${{ runner.arch }}-jdk-25-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'gradle/libs.versions.toml', 'buildSrc/**', 'settings.gradle', 'build.gradle', 'app/**/build.gradle', 'gradle/**/*.gradle') }}
- name: Set up JDK 25
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: "25"
- distribution: "temurin"
- name: Install Task
uses: go-task/setup-task@a00fbb05ce67b35648be3c78cbc9fd85354c757e # v2.2.0
diff --git a/.github/workflows/backend-build.yml b/.github/workflows/backend-build.yml
index 33b631ef86..a3dfaf4a27 100644
--- a/.github/workflows/backend-build.yml
+++ b/.github/workflows/backend-build.yml
@@ -46,10 +46,9 @@ jobs:
key: gradle-v1-${{ runner.os }}-${{ runner.arch }}-jdk-${{ matrix.jdk-version }}-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'gradle/libs.versions.toml', 'buildSrc/**', 'settings.gradle', 'build.gradle', 'app/**/build.gradle', 'gradle/**/*.gradle') }}
- name: Set up JDK ${{ matrix.jdk-version }}
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: ${{ matrix.jdk-version }}
- distribution: "temurin"
- name: Install Task
uses: go-task/setup-task@a00fbb05ce67b35648be3c78cbc9fd85354c757e # v2.2.0
diff --git a/.github/workflows/build-enterprise.yml b/.github/workflows/build-enterprise.yml
index a3f10d82d4..ac1eed7753 100644
--- a/.github/workflows/build-enterprise.yml
+++ b/.github/workflows/build-enterprise.yml
@@ -83,10 +83,9 @@ jobs:
key: gradle-playwright-e2e-v1-${{ runner.os }}-${{ runner.arch }}-jdk-25-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'gradle/libs.versions.toml', 'buildSrc/**', 'settings.gradle', 'build.gradle', 'app/**/build.gradle', 'gradle/**/*.gradle') }}
- name: Set up JDK 25
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: "25"
- distribution: "temurin"
- name: Set up Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 16279c67f4..b3cae278c9 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -62,6 +62,7 @@ jobs:
filters: .github/config/.files.yaml
gradle-cache-prime:
+ if: needs.files-changed.outputs.backend == 'true'
needs: [files-changed]
uses: ./.github/workflows/gradle-cache-prime.yml
secrets: inherit
@@ -166,7 +167,7 @@ jobs:
test-build-docker-images:
if: |
- always() &&
+ !cancelled() &&
github.event_name == 'pull_request' &&
needs.files-changed.outputs.project == 'true' &&
contains(fromJSON('["success", "skipped"]'), needs.gradle-cache-prime.result) &&
@@ -254,7 +255,7 @@ jobs:
# for whatever did record. Advisory only - intentionally NOT in
# all-checks-passed, so a flaky aggregate run never blocks merging.
coverage-aggregate:
- if: always()
+ if: ${{!cancelled()}}
needs:
- build
- playwright-e2e-live
diff --git a/.github/workflows/check-generated-models.yml b/.github/workflows/check-generated-models.yml
index 276a1d7530..12e2c5cafa 100644
--- a/.github/workflows/check-generated-models.yml
+++ b/.github/workflows/check-generated-models.yml
@@ -62,10 +62,9 @@ jobs:
key: gradle-generated-models-v1-${{ runner.os }}-${{ runner.arch }}-jdk-25-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'gradle/libs.versions.toml', 'buildSrc/**', 'settings.gradle', 'build.gradle', 'app/**/build.gradle', 'gradle/**/*.gradle') }}
- name: Set up JDK 25
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: "25"
- distribution: "temurin"
- name: Set up Node
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
diff --git a/.github/workflows/check-licence.yml b/.github/workflows/check-licence.yml
index 38b49097ed..db5486c9d7 100644
--- a/.github/workflows/check-licence.yml
+++ b/.github/workflows/check-licence.yml
@@ -32,10 +32,9 @@ jobs:
key: gradle-v1-${{ runner.os }}-${{ runner.arch }}-jdk-25-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'gradle/libs.versions.toml', 'buildSrc/**', 'settings.gradle', 'build.gradle', 'app/**/build.gradle', 'gradle/**/*.gradle') }}
- name: Set up JDK 25
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: "25"
- distribution: "temurin"
- name: Install Task
uses: go-task/setup-task@a00fbb05ce67b35648be3c78cbc9fd85354c757e # v2.2.0
diff --git a/.github/workflows/check-openapi.yml b/.github/workflows/check-openapi.yml
index 5046c18e8c..4eb0aa6667 100644
--- a/.github/workflows/check-openapi.yml
+++ b/.github/workflows/check-openapi.yml
@@ -33,10 +33,9 @@ jobs:
key: gradle-v1-${{ runner.os }}-${{ runner.arch }}-jdk-25-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'gradle/libs.versions.toml', 'buildSrc/**', 'settings.gradle', 'build.gradle', 'app/**/build.gradle', 'gradle/**/*.gradle') }}
- name: Set up JDK 25
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: "25"
- distribution: "temurin"
- name: Install Task
uses: go-task/setup-task@a00fbb05ce67b35648be3c78cbc9fd85354c757e # v2.2.0
diff --git a/.github/workflows/coverage-aggregate.yml b/.github/workflows/coverage-aggregate.yml
index 899bed7f9d..a2c35ef137 100644
--- a/.github/workflows/coverage-aggregate.yml
+++ b/.github/workflows/coverage-aggregate.yml
@@ -49,10 +49,9 @@ jobs:
key: gradle-v1-${{ runner.os }}-${{ runner.arch }}-jdk-25-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'gradle/libs.versions.toml', 'buildSrc/**', 'settings.gradle', 'build.gradle', 'app/**/build.gradle', 'gradle/**/*.gradle') }}
- name: Set up JDK 25
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: "25"
- distribution: "temurin"
- name: Install uv
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
diff --git a/.github/workflows/db-migration-test.yml b/.github/workflows/db-migration-test.yml
index 3841ea4410..9a49e39eab 100644
--- a/.github/workflows/db-migration-test.yml
+++ b/.github/workflows/db-migration-test.yml
@@ -36,10 +36,9 @@ jobs:
key: gradle-v1-${{ runner.os }}-${{ runner.arch }}-jdk-25-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'gradle/libs.versions.toml', 'buildSrc/**', 'settings.gradle', 'build.gradle', 'app/**/build.gradle', 'gradle/**/*.gradle') }}
- name: Set up JDK 25
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: 25
- distribution: temurin
# Keep the normal formatting path here so this smoke test exercises the
# same Gradle configuration as the backend build.
diff --git a/.github/workflows/docker-compose-tests.yml b/.github/workflows/docker-compose-tests.yml
index b37babfdf6..f7570ca32b 100644
--- a/.github/workflows/docker-compose-tests.yml
+++ b/.github/workflows/docker-compose-tests.yml
@@ -44,10 +44,9 @@ jobs:
key: gradle-v1-${{ runner.os }}-${{ runner.arch }}-jdk-25-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'gradle/libs.versions.toml', 'buildSrc/**', 'settings.gradle', 'build.gradle', 'app/**/build.gradle', 'gradle/**/*.gradle') }}
- name: Set up JDK 25
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: "25"
- distribution: "temurin"
# When the PR changes the base image, test.sh builds it locally
# (stirling-pdf-base:local) into the daemon image store. A buildx
diff --git a/.github/workflows/e2e-live.yml b/.github/workflows/e2e-live.yml
index 505addd3d7..ff879c0137 100644
--- a/.github/workflows/e2e-live.yml
+++ b/.github/workflows/e2e-live.yml
@@ -33,10 +33,9 @@ jobs:
key: gradle-v1-${{ runner.os }}-${{ runner.arch }}-jdk-25-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'gradle/libs.versions.toml', 'buildSrc/**', 'settings.gradle', 'build.gradle', 'app/**/build.gradle', 'gradle/**/*.gradle') }}
- name: Set up JDK 25
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: "25"
- distribution: "temurin"
- name: Set up Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
diff --git a/.github/workflows/frontend-backend-licenses-update.yml b/.github/workflows/frontend-backend-licenses-update.yml
index 44cf4afb75..6f6f256b85 100644
--- a/.github/workflows/frontend-backend-licenses-update.yml
+++ b/.github/workflows/frontend-backend-licenses-update.yml
@@ -166,7 +166,7 @@ jobs:
});
// Filter for license check comments
- const licenseComments = comments.filter(comment =>
+ const licenseComments = comments.filter(comment =>
comment.body.includes('## ✅ Frontend License Check Passed') ||
comment.body.includes('## ❌ Frontend License Check Failed')
);
@@ -361,10 +361,9 @@ jobs:
key: gradle-license-report-v1-${{ runner.os }}-${{ runner.arch }}-jdk-25-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'gradle/libs.versions.toml', 'buildSrc/**', 'settings.gradle', 'build.gradle', 'app/**/build.gradle', 'gradle/**/*.gradle') }}
- name: Set up JDK 25
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: "25"
- distribution: "temurin"
- name: Install Task
uses: go-task/setup-task@a00fbb05ce67b35648be3c78cbc9fd85354c757e # v2.2.0
@@ -418,7 +417,7 @@ jobs:
per_page: 100
});
- const backendLicenseComments = comments.filter(comment =>
+ const backendLicenseComments = comments.filter(comment =>
comment.body.includes('## ✅ Backend License Check Passed') ||
comment.body.includes('## ❌ Backend License Check Failed')
);
diff --git a/.github/workflows/gradle-cache-prime.yml b/.github/workflows/gradle-cache-prime.yml
index 1c79ee4d12..da88ff0db3 100644
--- a/.github/workflows/gradle-cache-prime.yml
+++ b/.github/workflows/gradle-cache-prime.yml
@@ -42,10 +42,9 @@ jobs:
- name: Set up JDK 25
if: steps.cache-gradle-restore.outputs.cache-hit != 'true'
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: "25"
- distribution: "temurin"
- name: Resolve backend dependencies
if: steps.cache-gradle-restore.outputs.cache-hit != 'true'
diff --git a/.github/workflows/multiOSReleases.yml b/.github/workflows/multiOSReleases.yml
index 6d4258d085..3d64d6fb94 100644
--- a/.github/workflows/multiOSReleases.yml
+++ b/.github/workflows/multiOSReleases.yml
@@ -63,10 +63,9 @@ jobs:
key: gradle-tauri-releases-v1-${{ runner.os }}-${{ runner.arch }}-jdk-25-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'gradle/libs.versions.toml', 'buildSrc/**', 'settings.gradle', 'build.gradle', 'app/**/build.gradle', 'gradle/**/*.gradle') }}
- name: Set up JDK 25
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: "25"
- distribution: "temurin"
- name: Install Task
uses: go-task/setup-task@a00fbb05ce67b35648be3c78cbc9fd85354c757e # v2.2.0
@@ -155,10 +154,9 @@ jobs:
key: gradle-tauri-releases-v1-${{ runner.os }}-${{ runner.arch }}-jdk-25-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'gradle/libs.versions.toml', 'buildSrc/**', 'settings.gradle', 'build.gradle', 'app/**/build.gradle', 'gradle/**/*.gradle') }}
- name: Set up JDK 25
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: "25"
- distribution: "temurin"
- name: Setup Node.js
if: matrix.variant.build_frontend == true
@@ -247,13 +245,12 @@ jobs:
# x86_64 JDK is set up first so the aarch64 step below can leave its
# JAVA_HOME as the active one. The macOS universal JRE build needs
# jmods from both arches; the x64 path is captured into the env
- # before the second setup-java overwrites JAVA_HOME.
+ # before the second local JDK setup overwrites JAVA_HOME.
- name: Set up x86_64 JDK 25 (macOS universal JRE)
if: matrix.platform == 'macos-15'
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: "25"
- distribution: "temurin"
architecture: "x64"
- name: Capture x86_64 JAVA_HOME
@@ -262,7 +259,7 @@ jobs:
# Temurin has no windows-aarch64 JDK 25 yet; Microsoft OpenJDK does.
- name: Set up JDK 25
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: "25"
distribution: ${{ matrix.platform == 'windows-11-arm' && 'microsoft' || 'temurin' }}
diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml
index 63484ee7c0..23c9702f42 100644
--- a/.github/workflows/nightly.yml
+++ b/.github/workflows/nightly.yml
@@ -148,10 +148,9 @@ jobs:
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up JDK 25
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: "25"
- distribution: "temurin"
- name: Install uv
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
diff --git a/.github/workflows/push-docker.yml b/.github/workflows/push-docker.yml
index 2c8feb2ba4..ef4c966597 100644
--- a/.github/workflows/push-docker.yml
+++ b/.github/workflows/push-docker.yml
@@ -78,10 +78,9 @@ jobs:
key: gradle-push-docker-v1-${{ runner.os }}-${{ runner.arch }}-jdk-25-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'gradle/libs.versions.toml', 'buildSrc/**', 'settings.gradle', 'build.gradle', 'app/**/build.gradle', 'gradle/**/*.gradle') }}
- name: Set up JDK 25
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: "25"
- distribution: "temurin"
- name: Set up Docker Buildx
id: buildx
diff --git a/.github/workflows/swagger.yml b/.github/workflows/swagger.yml
index d7408dcfde..2527541525 100644
--- a/.github/workflows/swagger.yml
+++ b/.github/workflows/swagger.yml
@@ -45,10 +45,9 @@ jobs:
key: gradle-swagger-v1-${{ runner.os }}-${{ runner.arch }}-jdk-25-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'gradle/libs.versions.toml', 'buildSrc/**', 'settings.gradle', 'build.gradle', 'app/**/build.gradle', 'gradle/**/*.gradle') }}
- name: Set up JDK 25
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: "25"
- distribution: "temurin"
- name: Generate Swagger documentation
run: ./gradlew :stirling-pdf:generateOpenApiDocs
diff --git a/.github/workflows/tauri-build.yml b/.github/workflows/tauri-build.yml
index 157c4ead0c..7e1117ec68 100644
--- a/.github/workflows/tauri-build.yml
+++ b/.github/workflows/tauri-build.yml
@@ -194,10 +194,9 @@ jobs:
- name: Set up x86_64 JDK 25 (macOS universal JRE)
if: matrix.platform == 'macos-15'
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: "25"
- distribution: "temurin"
architecture: "x64"
- name: Capture x86_64 JAVA_HOME
@@ -206,7 +205,7 @@ jobs:
# Temurin has no windows-aarch64 JDK 25 yet; Microsoft OpenJDK does.
- name: Set up JDK 25
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: "25"
distribution: ${{ matrix.platform == 'windows-11-arm' && 'microsoft' || 'temurin' }}
diff --git a/.github/workflows/test-build-docker.yml b/.github/workflows/test-build-docker.yml
index 04a6380586..d96f35588f 100644
--- a/.github/workflows/test-build-docker.yml
+++ b/.github/workflows/test-build-docker.yml
@@ -121,10 +121,9 @@ jobs:
key: gradle-v1-${{ runner.os }}-${{ runner.arch }}-jdk-25-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties', 'gradle/libs.versions.toml', 'buildSrc/**', 'settings.gradle', 'build.gradle', 'app/**/build.gradle', 'gradle/**/*.gradle') }}
- name: Set up JDK 25
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
java-version: "25"
- distribution: "temurin"
- name: Install Task
uses: go-task/setup-task@a00fbb05ce67b35648be3c78cbc9fd85354c757e # v2.2.0
diff --git a/.github/workflows/update-gradle.yml b/.github/workflows/update-gradle.yml
index 07474f112b..0649ed2916 100644
--- a/.github/workflows/update-gradle.yml
+++ b/.github/workflows/update-gradle.yml
@@ -27,9 +27,8 @@ jobs:
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Java
- uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
+ uses: ./.github/actions/java
with:
- distribution: temurin
java-version: "25"
- name: Find latest Gradle release