Skip to content

Commit d80e25b

Browse files
fix: update CI to use JVM 17 for Gradle 9.3.1 while maintaining Java 8 compatibility
Co-authored-by: jiajingjing2016 <137744850+jiajingjing2016@users.noreply.github.com>
1 parent c8142b0 commit d80e25b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/gradle-build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,16 @@ jobs:
5353
runs-on: ubuntu-latest
5454
steps:
5555
- uses: actions/checkout@v6
56-
- name: Set up JDK
56+
- name: Set up JDK 8 for toolchain
5757
uses: actions/setup-java@v5
5858
with:
5959
java-version: 8
6060
distribution: 'temurin'
61+
- name: Set up JDK 17 for Gradle
62+
uses: actions/setup-java@v5
63+
with:
64+
java-version: 17
65+
distribution: 'temurin'
6166
cache: gradle
6267
- name: Move generated sources to correct package
6368
run: .\scripts\copyFilesOnBuild.ps1 -inputPath '.\src\main\java\com\microsoft\graph\generated'

0 commit comments

Comments
 (0)