Home
Documentation
Download
Mailing List
Project
Getting Started
|
Welcome!
»
Contents
«
Contents
|
Version 0.12.4
Getting Started
¶
Welcome!
Translations to other languages
Setup
Overview
Installing sbt
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
Keys are defined in the Keys object
Other ways to transform settings
Task Keys
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
++=
Transforming a value:
~=
Computing a value based on other keys' values:
<<=
Appending with dependencies:
<+=
and
<++=
Next
Library Dependencies
Unmanaged dependencies
Managed Dependencies
.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
Using Plugins
What is a plugin?
Adding a plugin
Plugins can add settings and imports automatically
Adding settings manually from a plugin
Creating a plugin
Available Plugins
Next
Multi-Project Builds
Multiple projects
Defining projects in a
.scala
file
Aggregation
Classpath dependencies
Navigating projects interactively
Sharing settings
Next
Custom Settings and Tasks
Defining a key
Implementing a task
Extending but not replacing a task
Use plugins!
Next
Getting Started Summary
sbt: The Core Concepts
Advanced Notes
Contents
Getting Started