joschi / java-metadata

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

Corretto 17 is not available #17

Closed bric3 closed 2 years ago

bric3 commented 2 years ago

I noticed that asdf java does not list Corretto 17. Indeed when I look at the available metadata it's not listed either.

Reprocucer

$ curl -X 'GET' 'https://joschi.github.io/java-metadata/metadata/ga/linux/x86_64/jdk/hotspot/corretto.json' -H 'accept: application/json' | jq '.[].java_version' | grep "17\."

Releases have been available for 4days at the time of this issue creation. https://github.com/corretto/corretto-17/releases

bric3 commented 2 years ago

Just for reference the current workaround is

$ cd ~/.asdf/installs/java
$ curl -LO https://corretto.aws/downloads/resources/17.0.0.35.2/amazon-corretto-17.0.0.35.2-macosx-x64.tar.gz
$ mkdir -p corretto-17.0.0.35.2; tar --strip-components=3 -C corretto-17.0.0.35.2/ -xf amazon-corretto-17.0.0.35.2-macosx-x64.tar.gz amazon-corretto-17.jdk/Contents/Home && asdf reshim java
$ rm -rf amazon-corretto-17.jdk amazon-corretto-17.0.0.35.2-macosx-x64.tar.gz
joschi commented 2 years ago

@bric3 Thanks for reporting this and contributing the pull request to fix the issue!

Metadata for Corretto 17 has been added in https://github.com/joschi/java-metadata/commit/effab23ab2f60a57262ab9683b51c158d0d3449f.