Reading time: | 10 min |
Last updated: | 10 Jan 2025 |
Reading time: |
10 min |
Last updated: |
10 Jan 2025 |
This guide is intended to get you up and running with this tool quickly with the most common settings. For a thorough review of all options, refer to the official documentation.
sbt
is a popular build tool for Scala and Java projects.
sbt
supports the Arm architecture is available for Windows, macOS, and Linux.
When the project was created, it was called Simple Build Tool, but quickly evolved to sbt. Some have incorrectly redefined it to Scala Build Tool, which does not reflect the fact that sbt works with Java-only projects.
It is now called sbt in all lowercase letters, which emphasizes the fact that it is not an acronym.
Before installing sbt
, ensure you have Java installed on your system as sbt
requires Java to run.
See the Java install guide for more information.
Confirm you are using an Arm machine by running:
uname -m
The output should be:
aarch64
If you see a different result, you are not using an Arm computer running 64-bit Linux.
You can install sbt
using the Ubuntu package manager.
First, you need to add the sbt
repository:
sudo apt-get update
sudo apt-get install apt-transport-https curl -y
echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list
curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x99E82A75642AC823" | sudo apt-key add
Next, install sbt
:
sudo apt-get update
sudo apt-get install sbt -y
Run the sbt
version command to confirm the sbt
and Java installation:
sbt --version
The version command also confirms you have a working Java setup.
The version is printed and looks similar to:
sbt version in this project: 1.10.7
sbt script version: 1.10.7
You are now ready to use sbt
.
How would you rate the overall quality of this tool quick-install guide?
What is the primary reason for your feedback ?
Thank you. We're grateful for your feedback on how to improve this tool quick-install guide.