Desktop version

Home arrow Computer Science arrow Building Applications with Scala


Creating Your App Architecture and Bootstrapping with SBT

In the previous chapter, we learned about Functional Programing and Scala. This chapter will be focused on Simple Build Tool (SBT) and Activator in order to Bootstrap complex Scala and Play framework projects. Using SBT and Activator, we can perform several development tasks such as building, running tests, and deploying the application (which will be covered in detail in Chapter 10, Scaling Up). Let's get started.

In this chapter, we will see the following topics:

  • • SBT basics-installation, structure, and dependencies
  • • Activator basics-creating projects
  • • Overall architecture of our application

Introducing SBT

SBT is the ultimate Scala solution for building and packing Scala applications. SBT has lots of plugins, such as Eclipse and IntelliJ IDEA projects generation, which help a great deal when we are doing Scala development. SBT is built in Scala in order to help you build your Scala applications. However, SBT can still be used to build Java applications if you wish.

The core features of SBT are as follows:

  • • Scala-based build definition
  • • Incremental compilation
  • • Continuous compilation and testing
  • • Great support for testing libraries such as ScalaCheck, Specs, ScalaTest, and JUnit
  • • REPL integration
  • • Parallel Task execution

We will use SBT with the Typesafe Activator to Bootstrap our application later in this very chapter. Before doing so, we will play with SBT to learn the key concepts of setting up a build project for a Scala application. In this book, we will be using SBT version 0.13.11.

Found a mistake? Please highlight the word and press Shift + Enter  
< Prev   CONTENTS   Next >

Related topics