Update your Scala dependencies (both libraries and plugins) interactively. Video Demo.
This will work best on Intel-based Macs for the time being, as GitHub actions do not support M1 builds yet. If you'd like faster binaries on M1, install manually with GraalVM (the next step).
brew install kitlangton/scala-interactive-update/scala-interactive-update
- 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-interactive-update
- Move the generated binary onto your
PATH
.
Run the binary from within an sbt project folder.
scala-interactive-update
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.
If multiple dependencies share a single version, they will be grouped.
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.
I have another library, zio-tui, for creating interactive command line interactive programs just like this one.