Definição
Define o projeto: versão do Scala, dependências e configuração de empacotamento.
Exemplos
1. Projeto Spark
name := "sales-etl" version := "0.1.0" scalaVersion := "2.12.18" libraryDependencies ++= Seq( "org.apache.spark" %% "spark-sql" % "3.5.1" % Provided, "io.delta" %% "delta-spark" % "3.2.0" % Provided, "org.scalatest" %% "scalatest" % "3.2.19" % Test )
2. Versão do Scala conforme o cluster
// Databricks Runtime 13+ and Spark 3.5: Scala 2.12 // check the runtime release notes before changing
3. Plugins (project/plugins.sbt)
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.2.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")