mirror of
https://github.com/graalvm/setup-graalvm.git
synced 2025-01-31 19:26:36 +08:00
Add upgrade notice for JDK 20 users.
This commit is contained in:
parent
3282b5e43f
commit
814434c7a9
6
dist/main/index.js
generated
vendored
6
dist/main/index.js
generated
vendored
@ -70322,9 +70322,13 @@ exports.checkForUpdates = void 0;
|
|||||||
const core = __importStar(__nccwpck_require__(2186));
|
const core = __importStar(__nccwpck_require__(2186));
|
||||||
function checkForUpdates(graalVMVersion, javaVersion) {
|
function checkForUpdates(graalVMVersion, javaVersion) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
if (javaVersion === '20') {
|
||||||
|
core.notice('A new GraalVM release is available! Please consider upgrading to GraalVM for JDK 21: https://medium.com/p/ee01177dd12d');
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (graalVMVersion.length > 0 &&
|
if (graalVMVersion.length > 0 &&
|
||||||
(javaVersion === '17' || javaVersion === '19')) {
|
(javaVersion === '17' || javaVersion === '19')) {
|
||||||
const recommendedJDK = javaVersion === '17' ? '17' : '20';
|
const recommendedJDK = javaVersion === '17' ? '17' : '21';
|
||||||
core.notice(`A new GraalVM release is available! Please consider upgrading to GraalVM for JDK ${recommendedJDK}. Instructions: https://github.com/graalvm/setup-graalvm#migrating-from-graalvm-223-or-earlier-to-the-new-graalvm-for-jdk-17-and-later`);
|
core.notice(`A new GraalVM release is available! Please consider upgrading to GraalVM for JDK ${recommendedJDK}. Instructions: https://github.com/graalvm/setup-graalvm#migrating-from-graalvm-223-or-earlier-to-the-new-graalvm-for-jdk-17-and-later`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -4,11 +4,17 @@ export async function checkForUpdates(
|
|||||||
graalVMVersion: string,
|
graalVMVersion: string,
|
||||||
javaVersion: string
|
javaVersion: string
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
|
if (javaVersion === '20') {
|
||||||
|
core.notice(
|
||||||
|
'A new GraalVM release is available! Please consider upgrading to GraalVM for JDK 21: https://medium.com/p/ee01177dd12d'
|
||||||
|
)
|
||||||
|
return
|
||||||
|
}
|
||||||
if (
|
if (
|
||||||
graalVMVersion.length > 0 &&
|
graalVMVersion.length > 0 &&
|
||||||
(javaVersion === '17' || javaVersion === '19')
|
(javaVersion === '17' || javaVersion === '19')
|
||||||
) {
|
) {
|
||||||
const recommendedJDK = javaVersion === '17' ? '17' : '20'
|
const recommendedJDK = javaVersion === '17' ? '17' : '21'
|
||||||
core.notice(
|
core.notice(
|
||||||
`A new GraalVM release is available! Please consider upgrading to GraalVM for JDK ${recommendedJDK}. Instructions: https://github.com/graalvm/setup-graalvm#migrating-from-graalvm-223-or-earlier-to-the-new-graalvm-for-jdk-17-and-later`
|
`A new GraalVM release is available! Please consider upgrading to GraalVM for JDK ${recommendedJDK}. Instructions: https://github.com/graalvm/setup-graalvm#migrating-from-graalvm-223-or-earlier-to-the-new-graalvm-for-jdk-17-and-later`
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user