Appendix: Bare .sbt build definition 

This page describes an old style of .sbt build definition. The current recommendation is to use Multi-project .sbt build definition.

What is a bare .sbt build definition 

Unlike Multi-project .sbt build definition and .scala build definition that explicitly define a Project definition, bare build definition implicitly defines one based on the location of the .sbt file.

Instead of defining Projects, bare .sbt build definition consists of a list of Setting[_] expressions.

name := "hello"

version := "1.0"

scalaVersion := "2.12.2"

(Pre 0.13.7) Settings must be separated by blank lines 

Note: This blank line delimitation will no longer be needed after 0.13.7.

You can’t write a bare build.sbt like this:

// will NOT compile, no blank lines
name := "hello"
version := "1.0"
scalaVersion := "2.10.3"

sbt needs some kind of delimiter to tell where one expression stops and the next begins.

Contents

sbt Reference Manual
    1. Appendix: Bare .sbt build definition