From c609d33e8c3e7bb661521c055defc63f5f1cea53 Mon Sep 17 00:00:00 2001 From: Tom Brow Date: Thu, 29 Oct 2026 14:34:36 -0700 Subject: [PATCH] ci: pin JDK 17 for the Android lane (#8711) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `ubuntu-latest` now resolves to Ubuntu 26.04, whose default JDK is 25. Gradle 8.14.5 doesn't support JDK 25, so every Android CI build fails at project configuration ("Gradle build failed due to Java/Gradle incompatibility"). This breaks main and every open mobile PR. The last green Android run (18:09Z today) was on the 24.04 image, which defaults to JDK 17. This pins Temurin JDK 17 with `actions/setup-java` (SHA-pinned to v6.1.0) for the Android lane only. Other lanes are unchanged. ### Validation - The pinned `actions/setup-java` SHA matches the upstream `v6.1.0` tag. - This PR's own Android lane is the end-to-end check. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Tom Brow Co-authored-by: Tom Brow Co-authored-by: studio --- .github/workflows/_ci-clients.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/_ci-clients.yml b/.github/workflows/_ci-clients.yml index e5c01e8192..d1fe48a0a6 100644 --- a/.github/workflows/_ci-clients.yml +++ b/.github/workflows/_ci-clients.yml @@ -160,6 +160,14 @@ jobs: - name: Test mobile recipe argument forwarding if: matrix.lane == 'checks' run: /bin/bash scripts/test-mobile-gateway-recipes.sh + # ubuntu-latest (26.04) defaults to JDK 25, which Gradle 8.14 does not + # support. Pin the JDK 17 the 24.04 image used. + - name: Set up JDK 17 + if: matrix.lane == 'android' + uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 + with: + distribution: temurin + java-version: "17" - name: Restore Gradle cache if: matrix.lane == 'android' uses: actions/cache/restore@caa296126883cff596d87d8935842f9db880ef25 # v5