Comcast / ansible-sdkman

An Ansible role that installs, configures, and manages SDKMAN
https://galaxy.ansible.com/Comcast/sdkman/
Apache License 2.0
58 stars 28 forks source link

Fix CI by prefetching latest java candidate #49

Open elliotweiser opened 4 years ago

elliotweiser commented 4 years ago

SDKMAN does not like to keep around old sdks, so pinning to a specific version of Java for CI doesn't work out so well and means the test playbook needs to be constantly fixed. It would be better to pre-fetch the latest version of e.g. adoptopenjdk using the candidates API

e.g. https://api.sdkman.io/2/candidates/java/linux/versions/list?installed=

elliotweiser commented 4 years ago

I've asked about getting machine-parseable metadata in slack.sdkman.io. The candidates API doesn't seem to support it at the moment.