From ebe80d5919905e8c2ec23d72264f9b686a60c618 Mon Sep 17 00:00:00 2001 From: Antonio Musarra Date: Fri, 6 Dec 2024 10:45:31 +0100 Subject: [PATCH] Added the vendor and the vendorVersion of the Java: Having the vendor and vendor version information of Java is useful in case of support and bug fixes of the specific vendor related Java version. (cherry picked from commit 9820480d8b88d30d66625e41a8024a87af124c77) --- .../io/quarkus/info/runtime/JavaInfoContributor.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/extensions/info/runtime/src/main/java/io/quarkus/info/runtime/JavaInfoContributor.java b/extensions/info/runtime/src/main/java/io/quarkus/info/runtime/JavaInfoContributor.java index 11a88a612afbd..e381b3ba41b6e 100644 --- a/extensions/info/runtime/src/main/java/io/quarkus/info/runtime/JavaInfoContributor.java +++ b/extensions/info/runtime/src/main/java/io/quarkus/info/runtime/JavaInfoContributor.java @@ -17,10 +17,20 @@ public Map data() { //TODO: should we add more information like 'java.runtime.*' and 'java.vm.*' ? Map result = new LinkedHashMap<>(); result.put("version", getVersion()); + result.put("vendor", getVendor()); + result.put("vendorVersion", getVendorVersion()); return result; } static String getVersion() { return System.getProperty("java.version"); } + + static String getVendor() { + return System.getProperty("java.vendor"); + } + + static String getVendorVersion() { + return System.getProperty("java.vendor.version"); + } }