Getting Started with SBT for Scala

This practical guide to SBT will make your next large-scale Scala or Java project a lot more speedy and manageable. Familiarize yourself quickly and easily with the features and configuration of this powerful build tool.
Preview in Mapt

Getting Started with SBT for Scala

Shiti Saxena

1 customer reviews
This practical guide to SBT will make your next large-scale Scala or Java project a lot more speedy and manageable. Familiarize yourself quickly and easily with the features and configuration of this powerful build tool.

Quick links: > What will you learn?> Table of content> Product reviews

eBook
$14.00
RRP $19.99
Save 29%
Print + eBook
$32.99
RRP $32.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$14.00
$32.99
RRP $19.99
RRP $32.99
eBook
Print + eBook

Frequently bought together


Getting Started with SBT for Scala Book Cover
Getting Started with SBT for Scala
$ 19.99
$ 14.00
Building Applications with Scala Book Cover
Building Applications with Scala
$ 39.99
$ 28.00
Buy 2 for $31.50
Save $28.48
Add to Cart

Book Details

ISBN 139781783282678
Paperback86 pages

Book Description

Build tools are a boon to developers working on large projects. With the configuration to run/execute the project moved out, developers can focus more on the project. SBT is a build tool designed for Scala and Java projects. It provides developers with a high productivity work environment hence it comes in really handy when dealing with large projects.

Getting Started with SBT for Scala gets you going with using SBT and also introduces its advanced concepts. SBT is a build tool that uses a Scala-based DSL. Additionally, SBT has some interesting features that come in handy during development, such as starting a Scala REPL with project classes and dependencies on the classpath, continuous compilation and testing with triggered execution, and much more.

Getting Started with SBT for Scala introduces SBT and its various features. It shows how to set up the build definition for a Scala project using sample code to explain different scenarios and use cases. It explains the basic configuration required to compile, test, and run a project using SBT. We will take a look at the additional configuration and settings that can be set to suit the project requirements. You will also learn how to handle project dependencies in SBT and use Scala files to define the build. It shows how to fork the JVM in SBT for different processes and specific configurations. It also explains the intricacies of the build definition, parallel execution.

This book will make you familiar with SBT so that you can use it for different kinds of projects like simple, and multiple modules which can be dependent or independent.

Table of Contents

Chapter 1: Hello World with SBT
Why SBT?
Installing SBT
Creating a new project
Compiling, testing, and running your project
Going interactive with the SBT shell
Summary
Chapter 2: .sbt Build Definitions
The theory of .sbt
The .sbt syntax
Understanding keys
Working with scopes
Summary
Chapter 3: Dependency Management
Quick introduction to Maven or Ivy dependency management
Dependency management in SBT
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

What You Will Learn

  • Explore the internal workings of SBT
  • Uncover the various settings that play a significant role in the build
  • Understand the different ways of managing project dependencies
  • Learn how to customize the build to suit your project requirements
  • Leverage the features of SBT to simplify the build process
  • Configure the build for a multi-project with or without dependencies on different modules

Authors

Table of Contents

Chapter 1: Hello World with SBT
Why SBT?
Installing SBT
Creating a new project
Compiling, testing, and running your project
Going interactive with the SBT shell
Summary
Chapter 2: .sbt Build Definitions
The theory of .sbt
The .sbt syntax
Understanding keys
Working with scopes
Summary
Chapter 3: Dependency Management
Quick introduction to Maven or Ivy dependency management
Dependency management in SBT
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

Book Details

ISBN 139781783282678
Paperback86 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Building Applications with Scala Book Cover
Building Applications with Scala
$ 39.99
$ 28.00
Scala for Machine Learning Book Cover
Scala for Machine Learning
$ 35.99
$ 25.20
Scala Functional Programming Patterns Book Cover
Scala Functional Programming Patterns
$ 39.99
$ 28.00
Scala for Data Science Book Cover
Scala for Data Science
$ 43.99
$ 30.80
Scala Test-Driven Development Book Cover
Scala Test-Driven Development
$ 31.99
$ 22.40
Mastering Play Framework for Scala Book Cover
Mastering Play Framework for Scala
$ 39.99
$ 28.00