Skip to content

Commit 074a617

Browse files
update java version
1 parent 652545a commit 074a617

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/actions/setup-android-emulator/action.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ inputs:
1919
description: Android system image architecture.
2020
required: false
2121
default: x86_64
22+
java-version:
23+
description: JDK version to install for Android builds.
24+
required: false
25+
default: '17'
2226
runs:
2327
using: composite
2428
steps:
@@ -41,10 +45,10 @@ runs:
4145
~/.android/adb*
4246
key: ${{ inputs.cache-key }}
4347

44-
- name: Set up JDK 17
48+
- name: Set up JDK
4549
uses: actions/setup-java@v3
4650
with:
47-
java-version: 17
51+
java-version: ${{ inputs.java-version }}
4852
distribution: adopt
4953
cache: gradle
5054

.github/workflows/test-simulators.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ jobs:
105105
with:
106106
avd-name: ${{ env.AVD_NAME }}
107107
cache-key: capacitor-avd-31
108+
java-version: '21'
108109

109110
- name: Enable Corepack
110111
run: corepack enable

0 commit comments

Comments
 (0)