Local environment setup
In this chapter, we are going to look at some of the tools that the rest of the book will use.
The build tool
We will be using sbt
as the build tool. It was the first build tool that was specifically created for Scala. sbt
uses a standard project directory structure underneath the main project directory, also called the base directory in sbt
parlance. For example, if we created a project named hello
in the /tmp/foo
directory, then /tmp/foo
is the base directory of the project. Here is what a typical directory structure will look like under the base directory:
build.sbt project/ src/ -- main/ Â Â Â |-- java/ Â Â Â |-- resources/ Â Â Â |-- scala/ |-- test/ Â Â Â |-- java/ Â Â Â |-- resources/ Â Â Â |-- scala/ target/
The build
definition is described in the build.sbt
file in the project’s base directory. In addition to build.sbt
, the project
directory can contain .scala
...