Deprecate Java 7 (#2629)

This commit is contained in:
Dibir Magomedsaygitov
2021-02-05 18:22:20 +03:00
committed by GitHub
parent 9480083149
commit 01cd7ca628
5 changed files with 6 additions and 24 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
}
}