From 34a7e0d27862aecab9b608f0a2bab0d4f51c809c Mon Sep 17 00:00:00 2001 From: Tomas Fiedor Date: Tue, 22 Jul 2025 08:30:18 +0200 Subject: [PATCH] Bump the JDK requirements for pegasus --- substratevm/mx.substratevm/mx_substratevm_benchmark.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/substratevm/mx.substratevm/mx_substratevm_benchmark.py b/substratevm/mx.substratevm/mx_substratevm_benchmark.py index f20423249540..f0357db9a7ab 100644 --- a/substratevm/mx.substratevm/mx_substratevm_benchmark.py +++ b/substratevm/mx.substratevm/mx_substratevm_benchmark.py @@ -782,8 +782,8 @@ def lookup_bundle(self, app_name: str, layer_info: Layer, app_dir: Path) -> List def generate_bundle(self, app_name: str, layer_info: Layer): """Generates the NIB file for the app-layer pair associated with the current benchmark stage.""" - if app_name == "micronaut-pegasus-function" and mx.get_env("JDK17_HOME") is None: - mx.abort(f"App '{app_name}' requires JDK17_HOME env var to point to a JDK 17 distribution in order to build maven project.") + if app_name == "micronaut-pegasus-function" and mx.get_env("JDK21_HOME") is None: + mx.abort(f"App '{app_name}' requires JDK21_HOME env var to point to a JDK 21 distribution in order to build maven project.") nib_generation_cmd = ["./graalos-gate.py", "build", "--build-profile", "nib", app_name] if layer_info is not None: