foojayio / discoapi

The foojay discovery api (discoapi) is made to discover java packages (jre/jdk) from different distributions.
GNU General Public License v2.0
111 stars 13 forks source link

Consider adding VM implementation #15

Closed marchof closed 2 years ago

marchof commented 3 years ago

It might be an interesting information what VM implementation is shipped with the package. There is

I like the metadata which is provided in Raphael Winterhalter's list:

https://rafael.codes/openjdk/

HanSolo commented 3 years ago

Yep that might be something to consider, the only problem is we have to add that data manually per distribution because not every distro offers that kind of information. So I will discuss internally. Thx for the hint.

joschi commented 3 years ago

While not all vendors explicitly mention the VM implementation it's rather safe to assume Hotspot by default and then handle any deviations accordingly.

# curl -s 'https://joschi.github.io/java-metadata/metadata/vendor/adoptopenjdk/all.json' -H 'accept: application/json' | jq -r .[].jvm_impl | sort -u
hotspot
openj9
# curl -s 'https://joschi.github.io/java-metadata/metadata/all.json' -H 'accept: application/json' | jq -r .[].jvm_impl | sort -u
graalvm
hotspot
openj9
HanSolo commented 2 years ago

GraalVM was added as separate distribution and now that Semeru comes separate from Temurin we stick to the current layout without adding an extra field for jvm implementation