foojayio / discoapi

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

Linux on s390x: No JDK available for AOJ, AOJ_J9, Semeru, SemeruCertified and Temurin #105

Closed hfhbd closed 3 weeks ago

hfhbd commented 3 weeks ago

Hey,

when I use this request, I only get some non-downloadable Debian result, but there is a JDK for Linux on s390x available by AOJ, AOJ_J9, Semeru, SemeruCertified and Temurin.

https://api.foojay.io/disco/v3.0/packages?version=21&architecture=s390x&operating_system=linux

AOJ, AOJ_J9: https://adoptopenjdk.net/releases.html Semeru, SemeruCertified: https://developer.ibm.com/languages/java/semeru-runtimes/downloads/ Temurin: https://adoptium.net/de/temurin/releases/?arch=s390x

I did try to fork and update the code, but only AOJ, AOJ_J9 and Temurin had an explicit arch mapping.

HanSolo commented 3 weeks ago

When you search for the latest available version for a major version e.g. 21, the following call will give you the result you are looking for: https://api.foojay.io/disco/v3.0/packages/jdks?jdk_version=21&operating_system=linux&architecture=s390x&latest=available

hfhbd commented 3 weeks ago

Thanks, then I'll further investigate why the Gradle plugin does not resolve the JDK for s390x, though it's caused by the API.

Edit: the error is caused by the Gradle plugin: https://github.com/gradle/foojay-toolchains/issues/72