Skip to content

Commit 51cf559

Browse files
docs: add clarifying comments for dual JDK setup in CI workflow
Co-authored-by: jiajingjing2016 <137744850+jiajingjing2016@users.noreply.github.com>
1 parent d80e25b commit 51cf559

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/gradle-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,14 @@ jobs:
5353
runs-on: ubuntu-latest
5454
steps:
5555
- uses: actions/checkout@v6
56+
# Set up JDK 8 first for the Java toolchain to compile Java 8 bytecode
5657
- name: Set up JDK 8 for toolchain
5758
uses: actions/setup-java@v5
5859
with:
5960
java-version: 8
6061
distribution: 'temurin'
62+
# Set up JDK 17 as the primary JDK for running Gradle (Gradle 9.3.1 requires Java 17+)
63+
# Cache is configured here since this is the JDK that Gradle will use
6164
- name: Set up JDK 17 for Gradle
6265
uses: actions/setup-java@v5
6366
with:

0 commit comments

Comments
 (0)