Skip to content

Commit

Permalink
Updated the Graalvm CE version to 22
Browse files Browse the repository at this point in the history
  • Loading branch information
ajshastri committed Jun 1, 2024
1 parent 8cf372f commit 17daed1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions GraalVM/graalvm.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>graalvm</id>
<version>22.3.3</version>
<packageSourceUrl>https://github.com/johanjanssen/ChocolateyPackages/tree/master/GraalVM</packageSourceUrl>
<title>GraalVM Latest Stable Java Version Now Java 21</title>
<version>22.3.4</version>
<packageSourceUrl>https://github.com/ajshastri/chocolatey-packages/tree/master/GraalVM</packageSourceUrl>
<title>GraalVM Community Latest Java Version Now Java 22</title>
<authors>Oracle</authors>
<owners>JohanJanssen</owners>
<owners>linearreg</owners>
<licenseUrl>https://github.com/oracle/graal/blob/master/LICENSE</licenseUrl>
<projectUrl>https://www.graalvm.org/</projectUrl>
<docsUrl>https://www.graalvm.org/docs/introduction/</docsUrl>
<docsUrl>https://www.graalvm.org/docs/introduction</docsUrl>
<mailingListUrl>http://mail.openjdk.java.net/mailman/listinfo/graal-dev</mailingListUrl>
<bugTrackerUrl>https://github.com/oracle/graal/issues</bugTrackerUrl>
<projectSourceUrl>https://github.com/oracle/graal</projectSourceUrl>
<tags>openjdk java jvm</tags>
<tags>openjdk java jvm graalvm graalvm-ce</tags>
<summary>GraalVM is a virtual machine to run applications in different programming languages such as Java, Scala, Kotlin, JavaScript, Python, C, C++ and many more</summary>
<description>GraalVM is a virtual machine to run applications in different programming languages such as Java, Scala, Kotlin, JavaScript, Python, C, C++ and many more</description>
</metadata>
Expand Down
10 changes: 5 additions & 5 deletions GraalVM/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
$ErrorActionPreference = 'Stop'
$programFiles = (${env:ProgramFiles}, ${env:ProgramFiles(x86)} -ne $null)[0]
$installDir = "$programFiles\GraalVM"
$version = "21.0.2+13.1"
$version = "22.0.1+8.1"

$packageArgs = @{
PackageName = $env:ChocolateyPackageName
UnzipLocation = $targetDir = $installDir
Url64bit = 'https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-21.0.2/graalvm-community-jdk-21.0.2_windows-x64_bin.zip'
Checksum64 = 'e17b7bead097bf372a5c75df17815b0a2f30b777a019d25eff7706b21421f7fa'
Url64bit = 'https://github.com/graalvm/graalvm-ce-builds/releases/download/jdk-22.0.1/graalvm-community-jdk-22.0.1_windows-x64_bin.zip'
Checksum64 = '623a4c5984f1210e61346e3ff942ec6f83d1928790ef9ae7dd28067e5c8de1aa'
ChecksumType64 = 'sha256'
}

Install-ChocolateyZipPackage @packageArgs
Install-ChocolateyEnvironmentVariable 'JAVA_HOME' $targetDir\graalvm-ce-java17-$version 'Machine'
Install-ChocolateyEnvironmentVariable 'JAVA_HOME' $targetDir\graalvm-community-openjdk-$version 'Machine'
# The full path instead of the %JAVA_HOME% is needed so it can be removed with the Chocolatey Uninstall
Install-ChocolateyPath $targetDir\graalvm-ce-java17-$version\bin -PathType 'Machine'
Install-ChocolateyPath $targetDir\graalvm-community-openjdk-$version\bin -PathType 'Machine'
2 changes: 1 addition & 1 deletion GraalVM/tools/chocolateyuninstall.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$programFiles = (${env:ProgramFiles}, ${env:ProgramFiles(x86)} -ne $null)[0]
$installDir = "$programFiles\GraalVM"
$version = "21.0.2+13.1"
$version = "22.0.1+8.1"

Uninstall-ChocolateyEnvironmentVariable 'JAVA_HOME' 'Machine'
rm -r "$installDir\graalvm-community-openjdk-$version"
Expand Down

0 comments on commit 17daed1

Please sign in to comment.