Published 2022-07-22

Run multiple Scala version

Run multiple Scala version on Linux system and switch according to your project requirement. You might have some projects that needs to be run on old version and some new projects that has to be run on newer version. The solution is to keep switching between versions with ease. SDKMAN is the solution!

Amit Kumar Giri
                                
                                    SDKMAN is the solution!

1) Install SDKMAN with 
curl -s "https://get.sdkman.io" | bash
2) Run below command to load SDKMAN
source "$HOME/.sdkman/bin/sdkman-init.sh"
3) Check the version of the SDKMAN
sdk version
4) List the available versions
sdk list scala (sdk list for all)
5) To use required version
sdk use scala 3.1.3