Search

Dark theme | Light theme
Showing posts with label sdkman. Show all posts
Showing posts with label sdkman. Show all posts

March 18, 2025

SDKMAN! Listing And Upgrading Outdated SDKs And Tools

SDKMAN! is as powerful tool to install and manage software development kits (SDKs) and tools, like Java, Groovy, Gradle, Maven, Spring Boot and Quarkus. If you want to see if a new version of a SDK or tool is available, you can use the sdk upgrade command. This command will list all outdated SDKs and tools. The installed version and the latest version are shown for each SDK and tool. To see if a single SDK or tool is outdated, you can use the name of the SDK or tool as argument to the sdk upgrade command.

July 4, 2022

Get Absolute Path To An SDK With SDKMAN!

SDKMAN! has a home command that will return the absolute path of any SDK we pass as argument. This can be usefull in scripts where we need the absolute path to a SDK. We can specify the name of the SDK after the home command and the version. To use the current version that is set as default we can use as version current.

In the following example we use the home command for several SDKs:

$ sdk home groovy 4.0.3
/Users/mrhaki/.sdkman/candidates/groovy/4.0.3%
$ sdk home java 17.0.3-tem
/Users/mrhaki/.sdkman/candidates/java/17.0.3-tem%
$ sdk home jbake current
/Users/mrhaki/.sdkman/candidates/jbake/current%
$ export ASCIIDOCTORJ_DIR=`sdk home asciidoctorj current`
$ echo $ASCIIDOCTORJ_DIR
/Users/mrhaki/.sdkman/candidates/asciidoctorj/current
$

Written with SDKMAN! 5.15.0.

August 31, 2016

Check Which Candidates Can Be Updated With SDKMAN!

The Software Development Kit Manager (SDKMAN!) is an awesome and very useful tool. We can use it to install and manage candidates like Groovy, Grails, Griffon and Gradle. If we want to know if a new version of an installed candidate is available we use the outdated command. SKDMAN! returns a list of candidates with newer versions and also displays the version we have and is available. If we specify the candidate we can see if for that specific candidate a newer version is available.

For example we can get the following results:

$ sdk outdated
Outdated:
ant (1.9.6 < 1.9.7)
kotlin (1.0.0, 1.0.1, 1.0.2 < 1.0.3)
$ # Or we use the shortcut o
$ sdk o
Outdated:
ant (1.9.6 < 1.9.7)
kotlin (1.0.0, 1.0.1, 1.0.2 < 1.0.3)
$ # Check a specific candidate
$ sdk outdated ant
Outdated:
ant (1.9.6 < 1.9.7)
$

Written with SDKMAN! 5.0.0+51