SBT is the "Scala Build Tool". We will use it to compile & run our code.
โ You need a working installation of Java 8 (OpenJDK or Oracle JDK).
โ If you're a Ubuntu user, you need to upgrade to at least Xenial (16.04 LTS).
Go to the SBT download page and install it from there.
Run the following commands:
$ ./setup
$ ./sbt
After downloading the entire Internet, this should load up the SBT shell.
Alternatively, you can install SBT from your distribution's package manager:
- Arch Linux:
sbt
- Homebrew:
sbt
- deb-based/rpm-based: additional repository
Depending on your installation, run ./sbt
or sbt
in the repository root.
SBT will print something like this (or similar):
[info] Loading global plugins from /home/lars/.sbt/0.13/plugins/project
[info] Loading global plugins from /home/lars/.sbt/0.13/plugins
[info] Loading project definition from /home/lars/proj/katsconf2017/project
[info] Set current project to katsconf2017 (in build file:/home/lars/proj/katsconf2017/)
>
This is the SBT shell where you can type commands.
As a first step, type update
, which will fetch all necessary dependencies.
To compile, run, or test, type compile
, run
, or test
, respectively.
To exit, press Ctrl-D
or type exit
.