SdkMan!
SdkMan! is a Software Development Kit (SDK) manager which can let you install numerous SDKs and tools like Java (JDK), Scala, sbt, etc.
Installation
curl -s "https://get.sdkman.io" | bash
Usage
- List all available SDK Candidates
sdk list
For installation of Java and Scala, please check out the Java and Scala pages.
Setup
Let's enable auto env change to have a specific Java version per project when necessary.
Run the following command.
sdk config
When you see the list of config properties, find the following line
sdkman_auto_env=false
and change to
sdkman_auto_env=true
Upgrade SdkMan!
To upgrade SdkMan! to the latest version, run the following command.
sdk selfupdate
e.g.)
$ sdk version
SDKMAN!
script: 5.18.2
native: 0.5.0
sdk selfupdate
$ sdk version
SDKMAN!
script: 5.19.0
native: 0.5.0