O'Reilly logo

Getting Started with SBT for Scala by Shiti Saxena

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

Understanding keys

In SBT, keys are defined for different purposes, ranging from simple ones, such as log-related, to complex ones, such as dependency-management-related. Each key has a rank associated with it which is used to prioritize the information to be displayed. A key can be categorized into one of the following categories:

  • Setting keys: This category contains keys whose values are computed on loading the project, and are stored for further use
  • Task keys: This category contains keys whose values are recomputed each time it is executed
  • Input keys: This category contains keys like the Task keys, but these keys have command-line arguments as input

Since a Task key is computed on each execution, a Setting key cannot depend on a Task key. Trying ...

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