File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
.github/actions/install-and-setup
tests/testdata/projects/package-managers/gradle/gradle-example-config/gradle/wrapper Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -102,3 +102,11 @@ runs:
102102 branch : swift-6.1-release
103103 tag : 6.1-RELEASE
104104 if : ${{ inputs.install-swift == 'true' && runner.os == 'Windows'}}
105+
106+ # Ensure Java 11 remains active after all installations (Swift setup might override it)
107+ - name : Force Java 11 on Windows
108+ if : runner.os == 'Windows'
109+ shell : powershell
110+ run : |
111+ echo "JAVA_HOME=$env:JAVA_HOME_11_X64" >> $env:GITHUB_ENV
112+ echo "$env:JAVA_HOME_11_X64\bin" >> $env:GITHUB_PATH
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =wrapper/dists
3- distributionUrl =https\://services.gradle.org/distributions/gradle-5.6.4 -bin.zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-7.6 -bin.zip
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
You can’t perform that action at this time.
0 commit comments