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
- 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
- Use a specific jar file as the sbt launcher:
sbt -sbt-jar
- Display help:
sbt -h
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
