Getting Started with SBT for Scala

Shiti Saxena

  • 出版商: Packt Publishing
  • 出版日期: 2013-08-29
  • 售價: $1,440
  • 貴賓價: 9.5$1,368
  • 語言: 英文
  • 頁數: 86
  • 裝訂: Paperback
  • ISBN: 1783282673
  • ISBN-13: 9781783282678
  • 相關分類: JVM 語言
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

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.

Overview

  • Establish simple and complex projects quickly
  • Employ Scala code to define the build
  • Write build definitions that are easy to update and maintain
  • Customize and configure SBT for your project, without changing your project’s existing structure

In Detail

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.

What you will learn from this book

  • 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

Approach

A practical and fast-paced guide, Getting Started with SBT for Scala walks you through the setup of Scala projects in SBT with sample code for common as well as critical scenarios.

Who this book is written for

Getting Started with SBT for Scala is for developers working on Scala projects who are interested in learning and utilizing Simple Build Tool to manage the build process.

商品描述(中文翻譯)

這本實用指南將使您下一個大型 Scala 或 Java 專案變得更加快速和可管理。快速輕鬆地熟悉這個強大建置工具的功能和配置。

概述
- 快速建立簡單和複雜的專案
- 使用 Scala 代碼來定義建置
- 編寫易於更新和維護的建置定義
- 自訂和配置 SBT 以符合您的專案,而不改變專案的現有結構

詳細內容
建置工具對於從事大型專案的開發者來說是福音。隨著執行專案的配置被移除,開發者可以更專注於專案本身。SBT 是一個專為 Scala 和 Java 專案設計的建置工具。它為開發者提供了高生產力的工作環境,因此在處理大型專案時非常方便。

《Getting Started with SBT for Scala》將幫助您開始使用 SBT,並介紹其進階概念。SBT 是一個使用基於 Scala 的 DSL 的建置工具。此外,SBT 還有一些在開發過程中非常有用的特性,例如啟動帶有專案類別和依賴項的 Scala REPL、持續編譯和測試以及觸發執行等。

《Getting Started with SBT for Scala》介紹了 SBT 及其各種功能。它展示了如何使用範例代碼設置 Scala 專案的建置定義,以解釋不同的情境和使用案例。它解釋了使用 SBT 編譯、測試和運行專案所需的基本配置。我們將查看可以根據專案需求設置的其他配置和設定。您還將學習如何在 SBT 中處理專案依賴,並使用 Scala 檔案來定義建置。它展示了如何在 SBT 中為不同的進程和特定配置分叉 JVM。它還解釋了建置定義和並行執行的複雜性。

這本書將使您熟悉 SBT,以便您可以將其用於不同類型的專案,如簡單專案和可以相互依賴或獨立的多模組專案。

您將從這本書中學到什麼
- 探索 SBT 的內部運作
- 揭示在建置中扮演重要角色的各種設定
- 理解管理專案依賴的不同方式
- 學習如何自訂建置以符合您的專案需求
- 利用 SBT 的特性簡化建置過程
- 配置多專案的建置,無論是否依賴於不同模組

方法
這本實用且快速的指南《Getting Started with SBT for Scala》將引導您通過範例代碼設置 SBT 中的 Scala 專案,涵蓋常見及關鍵情境。

本書的讀者
《Getting Started with SBT for Scala》適合那些從事 Scala 專案的開發者,對學習和利用 Simple Build Tool 來管理建置過程感興趣。