Home
Documentation
Download
Mailing List
Project
Getting Started
|
Welcome!
»
Contents
«
Contents
|
Version 0.13.0
Getting Started
¶
Welcome!
Translations to other languages
Setup
Overview
Installing sbt
Tips and Notes
Next
Hello, World
Create a project directory with source code
Build definition
Setting the sbt version
Directory structure
Base directory
Source code
sbt build definition files
Build products
Configuring version control
Running
Interactive mode
Batch mode
Continuous build and test
Common commands
Tab completion
History Commands
Next
.sbt
Build Definition
.sbt
vs.
.scala
Definition
What is a build definition?
How
build.sbt
defines settings
Settings are separated by blank lines
Keys
Defining tasks and settings
Keys in sbt interactive mode
Imports in
build.sbt
Adding library dependencies
Next
Scopes
The whole story about keys
Scope axes
Global scope
Delegation
Referring to scoped keys when running sbt
Inspecting scopes
Referring to scopes in a build definition
When to specify a scope
Next
More Kinds of Setting
Refresher: Settings
Appending to previous values:
+=
and
++=
Computing a value based on other keys' values
Appending with dependencies:
+=
and
++=
Next
Library Dependencies
Unmanaged dependencies
Managed Dependencies
Multi-Project Builds
Multiple projects
Dependencies
Default root project
Navigating projects interactively
Common code
Next
Using Plugins
What is a plugin?
Declaring a plugin
Adding settings for a plugin
Global plugins
Available Plugins
Creating a Plugin
Next
Custom Settings and Tasks
Defining a key
Implementing a task
Use plugins!
Next
.scala
Build Definition
sbt is recursive
.scala
source files in the build definition project
Relating
build.sbt
to
Build.scala
When to use
.scala
files
The build definition project in interactive mode
Reminder: it's all immutable
Next
Getting Started Summary
sbt: The Core Concepts
Advanced Notes
Source for this page
Contents
Getting Started