From 3c57440c1033a18b8ced8a644fd29363747615cd Mon Sep 17 00:00:00 2001 From: Ryan Marcellino <67644978+myan-rarcellino-nnl@users.noreply.github.com> Date: Mon, 29 Apr 2024 11:51:17 -0400 Subject: [PATCH] openjdk: add v21_35 (#40699) * openjdk: add v21+35 * add provides java@21 * Update var/spack/repos/builtin/packages/openjdk/package.py Co-authored-by: Wouter Deconinck --------- Co-authored-by: Wouter Deconinck --- var/spack/repos/builtin/packages/openjdk/package.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/var/spack/repos/builtin/packages/openjdk/package.py b/var/spack/repos/builtin/packages/openjdk/package.py index ccbe1d88ee..c8a739bda3 100644 --- a/var/spack/repos/builtin/packages/openjdk/package.py +++ b/var/spack/repos/builtin/packages/openjdk/package.py @@ -18,6 +18,12 @@ # format returned by platform.system() and 'arch' by platform.machine() _versions = { + "21.0.0_35": { + "Linux-x86_64": ( + "82f64c53acaa045370d6762ebd7441b74e6fda14b464d54d1ff8ca941ec069e6", + "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21%2B35/OpenJDK21U-jdk_x64_linux_hotspot_21_35.tar.gz", + ) + }, "17.0.8.1_1": { "Linux-x86_64": ( "c25dfbc334068a48c19c44ce39ad4b8427e309ae1cfa83f23c102e78b8a6dcc0", @@ -348,6 +354,7 @@ class Openjdk(Package): version(ver, sha256=pkg[0], url=pkg[1], preferred=is_preferred) + provides("java@21", when="@21.0:21") provides("java@17", when="@17.0:17") provides("java@16", when="@16.0:16") provides("java@11", when="@11.0:11")