joschi / java-metadata

Project collecting release metadata of various JDK distributions.
https://joschi.github.io/java-metadata/index.html
MIT License
32 stars 11 forks source link

What about adding IBM JDKs? #54

Open amandel opened 3 days ago

amandel commented 3 days ago

I know these are only old JDKs but still valuable for Websphere Application Server related development.

The JDKs are today available below https://public.dhe.ibm.com/ibmdl/export/pub/systems/cloud/runtimes/java/ for 8.0.x, 7.1.x and 7.0.x

joschi commented 3 days ago

I'm happy to merge any pull request adding these older JDKs but I don't currently have the bandwidth to work on this myself.

@amandel Do you want to give this a shot? The implementation might be similar to the Azul Zulu provider which is parsing the Apache httpd index listing.

https://github.com/joschi/java-metadata/blob/1f96ccc8a259881a7a05a69843a9fc978dbec1fc/bin/zulu.bash

amandel commented 3 days ago

I've created the PR - since I'm not to familiar with the format, I would appreciate feedback and suggestions for improvements. Her a snipped from the created json:

 [
  {
    "architecture": "x86_64",
    "features": [],
    "file_type": "tgz",
    "filename": "ibm-java-jre-8.0-8.30-linux-x86_64.tgz",
    "image_type": "jre",
    "java_version": "8.0.8.30",
    "jvm_impl": "openj9",
    "md5": "c92a1cebfa9377b0c60b68b9cee3572e",
    "md5_file": "ibm-java-jre-8.0-8.30-linux-x86_64.tgz.md5",
    "os": "linux",
    "release_type": "ga",
    "sha1": "1b20819b0464ce6fc2f1fcca5e9d8a96ed921e03",
    "sha1_file": "ibm-java-jre-8.0-8.30-linux-x86_64.tgz.sha1",
    "sha256": "918434b2288854235f141966710e2fe783d52a2956446dc0c6eb2902793bf068",
    "sha256_file": "ibm-java-jre-8.0-8.30-linux-x86_64.tgz.sha256",
    "sha512": "dc914881f06992ae83bf6808d81b427771cd3a8c90f9f80d8f9734829bf2c90b1723fccab1adf9008c466183fd783dc30938d274b2a77e42135c1283fdebe34b",
    "sha512_file": "ibm-java-jre-8.0-8.30-linux-x86_64.tgz.sha512",
    "size": 134218484,
    "url": "https://public.dhe.ibm.com/ibmdl/export/pub/systems/cloud/runtimes/java/8.0.8.30/linux/x86_64/ibm-java-jre-8.0-8.30-linux-x86_64.tgz",
    "vendor": "ibm",
    "version": "8.0.8.30"
  }
]

Edit: Fixed - file_type must not include the separating dot.