diff --git a/extensions/info/deployment/src/main/resources/dev-ui/qwc-info.js b/extensions/info/deployment/src/main/resources/dev-ui/qwc-info.js
index a89b011d4f67b..2590edb796c58 100644
--- a/extensions/info/deployment/src/main/resources/dev-ui/qwc-info.js
+++ b/extensions/info/deployment/src/main/resources/dev-ui/qwc-info.js
@@ -104,6 +104,8 @@ export class QwcInfo extends LitElement {
${java.version} |
+ ${java.vendor} |
+ ${java.vendorVersion} |
`;
@@ -151,7 +153,8 @@ export class QwcInfo extends LitElement {
_renderOptionalData(git){
if(typeof git.commit.id !== "string"){
return html`${git.commit.user.name} <${git.commit.user.email}> |
- ${unsafeHTML(this._replaceNewLine(git.commit.id.message.full))} |
`
+ ${unsafeHTML(this._replaceNewLine(git.commit.id.message.full))} |
+ ${unsafeHTML(git.remote)} |
`
}
}
@@ -165,6 +168,8 @@ export class QwcInfo extends LitElement {
return html`
+ ${build.quarkusVersion} |
+ ${unsafeHTML(build.name)} |
${build.group} |
${build.artifact} |
${build.version} |
diff --git a/extensions/info/deployment/src/test/java/io/quarkus/info/deployment/EnabledInfoTest.java b/extensions/info/deployment/src/test/java/io/quarkus/info/deployment/EnabledInfoTest.java
index fbac5fd326911..af7ca758626b2 100644
--- a/extensions/info/deployment/src/test/java/io/quarkus/info/deployment/EnabledInfoTest.java
+++ b/extensions/info/deployment/src/test/java/io/quarkus/info/deployment/EnabledInfoTest.java
@@ -70,5 +70,7 @@ public void test() {
assertNotNull(javaInfo);
assertNotNull(javaInfo.version());
+ assertNotNull(javaInfo.vendor());
+ assertNotNull(javaInfo.vendorVersion());
}
}
diff --git a/extensions/info/runtime/src/main/java/io/quarkus/info/JavaInfo.java b/extensions/info/runtime/src/main/java/io/quarkus/info/JavaInfo.java
index e7e4ed3c7fa90..35a76cf26c9ad 100644
--- a/extensions/info/runtime/src/main/java/io/quarkus/info/JavaInfo.java
+++ b/extensions/info/runtime/src/main/java/io/quarkus/info/JavaInfo.java
@@ -1,6 +1,31 @@
package io.quarkus.info;
+/**
+ * This interface provides information about the Java runtime.
+ *
+ * @see io.quarkus.info.runtime.InfoRecorder
+ * @see io.quarkus.info.runtime.JavaInfoContributor
+ */
public interface JavaInfo {
+ /**
+ * Return the Java runtime version.
+ *
+ * @return string that represent the Java version
+ */
String version();
+
+ /**
+ * Return the Java vendor.
+ *
+ * @return string that represent the Java vendor
+ */
+ String vendor();
+
+ /**
+ * Return the Java vendor runtime version.
+ *
+ * @return string that represent the Java vendor version
+ */
+ String vendorVersion();
}
diff --git a/extensions/info/runtime/src/main/java/io/quarkus/info/runtime/InfoRecorder.java b/extensions/info/runtime/src/main/java/io/quarkus/info/runtime/InfoRecorder.java
index c3380f685abca..0411426bf63ee 100644
--- a/extensions/info/runtime/src/main/java/io/quarkus/info/runtime/InfoRecorder.java
+++ b/extensions/info/runtime/src/main/java/io/quarkus/info/runtime/InfoRecorder.java
@@ -134,6 +134,16 @@ public JavaInfo get() {
public String version() {
return JavaInfoContributor.getVersion();
}
+
+ @Override
+ public String vendor() {
+ return JavaInfoContributor.getVendor();
+ }
+
+ @Override
+ public String vendorVersion() {
+ return JavaInfoContributor.getVendorVersion();
+ }
};
}
};