2019-10-04 07:50:39 +01:00
|
|
|
# sbt
|
|
|
|
|
|
|
|
> Build tool for Scala and Java projects.
|
2021-04-10 16:14:55 +01:00
|
|
|
> More information: <https://www.scala-sbt.org/1.0/docs/>.
|
2019-10-04 07:50:39 +01:00
|
|
|
|
|
|
|
- Start the SBT interactive shell (REPL):
|
|
|
|
|
|
|
|
`sbt`
|
|
|
|
|
2019-11-04 20:00:57 +00:00
|
|
|
- Create a new Scala project from an existing Giter8 template hosted on GitHub:
|
|
|
|
|
|
|
|
`sbt new {{scala/hello-world.g8}}`
|
|
|
|
|
2019-10-04 07:50:39 +01:00
|
|
|
- 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`
|