kitlangton / scala-update   0.2.2

Apache License 2.0 GitHub

Update your Scala dependencies interactively

Scala versions: 2.13


Release Artifacts

Update your Scala dependencies (both libraries and plugins) interactively. Video Demo.


Homebrew (Mac Only)

brew install kitlangton/tap/scala-update

If you'd like slightly faster binaries on an M1 mac, install manually with GraalVM (the next step).

Manually with GraalVM


You need GraalVM installed. If you don't have it, you may check their docs here. If you're using SDKMAN!, GraalVM images are available to install easily here.

# See Java versions and pick a GraalVM version, for example 22.1.0.r17-grl
sdk list java

sdk install java 22.1.0.r17-grl

# If you haven't set grl version as default, set it for the current terminal session
sdk use java 22.1.0.r17-grl

You need native-image installed. You can install it with GraalVM updater.

gu install native-image

Building Native Image with GraalVM

  1. Build the native image with show graalvm-native-image:packageBin.
sbt 'show graalvm-native-image:packageBin'
# [info] ~/code/sbt-interactive-update/target/graalvm-native-image/scala-update
  1. Move the generated binary onto your PATH. For example (in project root directory)
# Might need to run with sudo
cp target/graalvm-native-image/scala-update /usr/local/bin


Run the command from within an sbt project folder.


CleanShot 2022-06-27 at 09 15 23@2x

The commands are displayed at the bottom of the interactive output.

Select the libraries you wish to update, then hit Enter to update your build files to the selected versions.

CleanShot 2022-06-27 at 09 15 53@2x

Grouped Depenendcies

If multiple dependencies share a single version, they will be grouped.

CleanShot 2022-06-27 at 09 18 15@2x

Multiple Versions

If a dependency has multiple possible update version—for instance, a new major version and a new minor version—then you can select which version to upgrade to.

CleanShot 2022-06-27 at 09 20 23@2x


How did you make the interactive CLI?

I have another library, zio-tui, for creating interactive command line programs just like this one.