sbt
Build tool for Scala and Java projects. More information: https://www.scala-sbt.org/1.x/docs/.
-
Start a REPL (interactive shell):
sbt -
Create a new Scala project from an existing Giter8 template hosted on GitHub:
sbt new {{scala/hello-world.g8}} -
Compile and run all tests:
sbt test -
Delete all generated files in the
targetdirectory:
sbt clean -
Compile the main sources in
src/main/scalaandsrc/main/javadirectories:
sbt compile -
Use the specified version of sbt:
sbt -sbt-version {{version}} -
Use a specific jar file as the sbt launcher:
sbt -sbt-jar {{path}} -
List all sbt options:
sbt -h
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.