Table of Contents
Preface
Chapter 1: Hello World with SBT
Chapter 2: .sbt Build Definitions
Chapter 3: Dependency Management
Chapter 4: Full Build Definitions
Chapter 5: Compile, Test, and Run
Index
- Chapter 1: Hello World with SBT
- Why SBT?
- Installing SBT
- Installing from a package
- Installing on Mac
- Installing SBT manually
- Creating a new project
- Compiling, testing, and running your project
- Going interactive with the SBT shell
- Triggering SBT commands on saves
- Summary
- Chapter 2: .sbt Build Definitions
- The theory of .sbt
- The .sbt syntax
- Understanding keys
- Keys
- Setting keys
- Task keys
- Input keys
- Working with scopes
- Summary
- Chapter 3: Dependency Management
- Quick introduction to Maven or Ivy dependency management
- How Ivy works
- Resolve
- Retrieve
- Publish
- Dependency management in SBT
- Automatic dependency management
- Declaring dependencies in the build definition
- Dependencies using Maven files
- Dependencies using Ivy files or Ivy XML
- Adding JAR files manually
- Resolvers
- Summary
- Chapter 4: Full Build Definitions
- Build definition project
- .sbt and .scala
- Working with full build definitions
- Multiproject builds
- Summary
- Chapter 5: Compile, Test, and Run
- Commands
- Logging
- Forking the JVM
- Parallel execution
- SBT scripts and REPL
- Classpath, sources, and resources
- Test
- Summary