SDKMAN! hands-on

photo from therealdanvega.com

SDKMAN! is a software development kit management tool. It allows you install multiple versions of dev kit and switch between versions with simple commands.

SDKMAN! is written in bash script, you’ll need linux shell to run the command. My development environment is Windows, so I have to use Cygwin.

The installation is simple. Just run the following command:

$ curl -s "https://get.sdkman.io" | bash

And then run:

$ source "$HOME/.sdkman/bin/sdkman-init.sh"

After that you can start use command “sdk” to install, or switch version.

For example, if you want to install gradle, just type the following command.

$ sdk install gradle

This will install the latest version of gradle.

Sometimes, you want to use an older version of software and use it as default. To do so, you need to install a specific version and then change the default to that version. Going back to the gradle example. Let’s say I want to install gradle 2.5, I can use the following command.

$ sdk install gradle 2.5

After the installation, it will ask you if you want to use this version as default. Type “Y” and enter. If you somehow skip this step, you can use the following command to change the default:

$ sdk default gradle 2.5

Currently it only supports binaries that are platform agnostic, such as Gradle, Groovy, Scala and Spring-boot. JDK, which is platform specific, is unfortunately not supported. But from discussion on their github page, the support of jdk is on top of their roadmap. So hopefully we will be able to manage jdk very soon.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.