Deprecate Java 7 (#2633)

This commit is contained in:
Dibir Magomedsaygitov
2021-02-07 16:08:29 +03:00
committed by GitHub
parent 4491eeb15f
commit 3ca926ec34
5 changed files with 6 additions and 12 deletions

View File

@@ -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
}
}