SDKMAN! is a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems. It provides a convenient Command Line Interface (CLI) and API for installing, switching, removing and listing Candidates.
installing sdkman:
curl -s "https://get.sdkman.io" | bash
load the sdkman to the current terminal
source "$HOME/.sdkman/bin/sdkman-init.sh"
see this for more information or latest installation setup
sdk <command> [candidate] [version]
candidate : the SDK to install: groovy, scala, grails, gradle, kotlin, etc.
use list command for comprehensive list of candidates
eg: $ sdk list
version : where optional, defaults to latest stable if not provided
eg: $ sdk install groovy
commands:
install or i <candidate> [version]
uninstall or rm <candidate> <version>
list or ls [candidate]
default or d <candidate> [version]
use <candidate> [version] % use specific version in current terminal
current or c [candidate]
upgrade or ug [candidate]
use sdk help
for more detail