mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 05:07:02 +00:00
Deprecate Java 7 (#2629)
This commit is contained in:
committed by
GitHub
parent
9480083149
commit
01cd7ca628
@@ -18,12 +18,11 @@ function Get-JavaVersions {
|
||||
return $javaVersions | Sort-Object $sortRules | ForEach-Object {
|
||||
$javaPath = $_.Value
|
||||
$version = Get-JavaFullVersion "$javaPath"
|
||||
$vendor = $version.StartsWith("1.7") ? "Zulu" : "AdoptOpenJDK"
|
||||
$defaultPostfix = ($javaPath -eq $defaultJavaPath) ? " (default)" : ""
|
||||
|
||||
[PSCustomObject] @{
|
||||
"Version" = $version + $defaultPostfix
|
||||
"Vendor" = $vendor
|
||||
"Vendor" = "AdoptOpenJDK"
|
||||
"Environment Variable" = $_.Name
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user