Skip to content

Commit

Permalink
Updated Openjdk
Browse files Browse the repository at this point in the history
  • Loading branch information
ajshastri committed Jul 25, 2024
1 parent dd6cbb9 commit 2b959d1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions OpenJDK/openjdk.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>openjdk</id>
<version>22.0.1</version>
<version>22.0.2</version>
<packageSourceUrl>https://github.com/ajshastri/chocolatey-packages/tree/master/OpenJDK</packageSourceUrl>
<title>OpenJDK</title>
<authors>Oracle</authors>
<owners>linearreg</owners>
<licenseUrl>http://openjdk.java.net/legal/</licenseUrl>
<projectUrl>http://openjdk.java.net/</projectUrl>
<projectUrl>https://jdk.java.net/</projectUrl>
<docsUrl>http://openjdk.java.net/</docsUrl>
<mailingListUrl>http://mail.openjdk.java.net/mailman/listinfo</mailingListUrl>
<bugTrackerUrl>https://bugs.openjdk.java.net</bugTrackerUrl>
Expand Down
2 changes: 1 addition & 1 deletion OpenJDK/tools/chocolateyBeforeModify.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$programFiles = (${env:ProgramFiles}, ${env:ProgramFiles(x86)} -ne $null)[0]
$installDir = "$programFiles\OpenJDK"

$version = '22.0.1'
$version = '22.0.2'

$pathToUnInstall = "$installDir\jdk-$version\bin"

Expand Down
6 changes: 3 additions & 3 deletions OpenJDK/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ $ErrorActionPreference = 'Stop'
$programFiles = (${env:ProgramFiles}, ${env:ProgramFiles(x86)} -ne $null)[0]
$installDir = "$programFiles\OpenJDK"

$version = "22.0.1"
$version = "22.0.2"

$packageArgs = @{
PackageName = $env:ChocolateyPackageName
UnzipLocation = $targetDir = $installDir
Url64 = 'https://download.java.net/java/GA/jdk22.0.1/c7ec1332f7bb44aeba2eb341ae18aca4/8/GPL/openjdk-22.0.1_windows-x64_bin.zip'
Checksum64 = 'de7f00fd1bd0d3a4c678fff2681dfad19284d74d357218a4be6f623488d040da'
Url64 = 'https://download.java.net/java/GA/jdk22.0.2/c9ecb94cd31b495da20a27d4581645e8/9/GPL/openjdk-22.0.2_windows-x64_bin.zip'
Checksum64 = 'f2a9b9ab944e71a64637fcdc6b13a1188cf02d4eb9ecf71dc927e98b3e45f5dc'
ChecksumType64 = 'sha256'
}

Expand Down
2 changes: 1 addition & 1 deletion OpenJDK/tools/chocolateyuninstall.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$programFiles = (${env:ProgramFiles}, ${env:ProgramFiles(x86)} -ne $null)[0]
$installDir = "$programFiles\OpenJDK"

$version = '22.0.1'
$version = '22.0.2'

Uninstall-ChocolateyEnvironmentVariable 'JAVA_HOME' 'Machine'
rm -r "$installDir\jdk-$version"

0 comments on commit 2b959d1

Please sign in to comment.