In our CI/CD environment we have couple docker images with preinstalled java by sdkman. But there is one small problem, version number changes very often and our docker build fails because of missing package version. Eg.:
sdk install java 8.0.232-zulu
Stop! java 8.0.232-zulu is not available. Possible causes:
* 8.0.232-zulu is an invalid version
* java binaries are incompatible with Linux64
* java has not been released yet
Is there any option to non-interactive install latest java in sepecyfic "flavour" and version?
Something like:
sdk install java 8-zulu-latest
PS. For now, as (ugly) workaround we use
sdk install java $(sdk list java | grep -e 8\.0\..*-zulu[^fx] | sed -r s/^.*8/8/)