Chapter 4. The default build

This chapter covers

  • Arranging source files
  • Dealing with dependencies (libraries)
  • Compiling Scala and Java code
  • Running individual tests
  • Packaging your code

In the previous chapter, you learned the nuts and bolts: tasks, settings, projects, and builds. This chapter covers the structure of the building: the default build. Unlike the previous chapters, you won’t add much to the preowned-kittens project, but instead you’ll investigate how the existing build works so you know where to add new features.

We’ll deconstruct the build from the general tasks you need to accomplish, back to the pieces that make it up. Let’s walk back through the tasks you ran in chapter 2 and see what sbt does to execute them. We’ll ...

Get sbt in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.