O'Reilly logo

sbt in Action by Josh Suereth and Matthew Farwell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required