Update JDK11 upgrade notice.

This commit is contained in:
Fabio Niephaus 2023-02-13 10:30:11 +01:00
parent 93d8fee7fa
commit 8b27096bbf
No known key found for this signature in database
GPG Key ID: F21CF5275F31DFD6
2 changed files with 4 additions and 4 deletions

View File

@ -34,11 +34,11 @@ jobs:
java-version: '17'
components: 'native-image'
os: ubuntu-18.04
- version: '22.3.0'
- version: '22.3.1'
java-version: '11' # for JDK11 notification
components: 'native-image'
os: macos-11
- version: '22.3.0'
- version: '22.3.1'
java-version: '17'
components: 'native-image'
os: windows-2022

View File

@ -8,9 +8,9 @@ export async function checkForUpdates(
graalVMVersion: string,
javaVersion: string
): Promise<void> {
if (graalVMVersion === '22.3.0' && javaVersion === '11') {
if (graalVMVersion.startsWith('22.3.') && javaVersion === '11') {
core.notice(
'Please consider upgrading your project to Java 17+. The GraalVM 22.3.0 release is the last to support JDK11: https://github.com/oracle/graal/issues/5063'
'Please consider upgrading your project to Java 17+. GraalVM 22.3.X releases are the last to support JDK11: https://github.com/oracle/graal/issues/5063'
)
return
}