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 10. Automating workflows with commands

This chapter covers

  • A simple release command
  • Improving discoverability of a command with help messages
  • Chaining actions in a command
  • Using custom tasks in the release script
  • Custom parsing with commands

Sometimes executing one task isn’t enough; there are several things that need to happen. Rather than creating an external script file that can run sbt more than once, sbt provides a commands API that can be used to create workflows that go beyond doing one thing. Let’s start with an example.

Throughout the chapter, you’ll work on the release script for the preowned-kittens website. This script involves a lot of different components, and you’d like it to be as simple as release 1.0 for your ...

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