Skip to content

Commit f024b72

Browse files
authored
Use only major JDK version to install via homebrew (#28224)
We only want the major version in `brew install --cask microsoft-openjdk@17` instead of the full version which would incorrectly attempt `brew install --cask microsoft-openjdk@17.0.12`.
1 parent 3fce1b2 commit f024b72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Provisioning/Provisioning.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
</Target>
235235

236236
<Target Name="ProvisionJdkMacOS" DependsOnTargets="DetectJdkVersion" Condition=" '$(IsMacOS)' == 'True' AND '$(_AndroidJdkRequiresProvisioning)' == 'True' ">
237-
<Exec Command="brew install --cask microsoft-openjdk@$(_AndroidJdkVersion)" />
237+
<Exec Command="brew install --cask microsoft-openjdk@$(_AndroidJdkMajorVersion)" />
238238
</Target>
239239

240240
<Target Name="ProvisionJdkLinux" DependsOnTargets="DetectJdkVersion" Condition=" '$(IsLinux)' == 'True' AND '$(_AndroidJdkRequiresProvisioning)' == 'True' ">

0 commit comments

Comments
 (0)