A Homebrew tap containing the Formula for the SDKMAN! CLI.
$ brew tap sdkman/tap
$ brew install sdkman-cli
After successful installation add the following lines to the end of your .bash_profile
export SDKMAN_DIR=$(brew --prefix sdkman-cli)/libexec
[[ -s "${SDKMAN_DIR}/bin/sdkman-init.sh" ]] && source "${SDKMAN_DIR}/bin/sdkman-init.sh"
Open a new terminal and type
sdk version
The output should look similar to this
SDKMAN!
script: 5.18.2
native: 0.4.6