Scala - SBT (Builder)

1 - About

Sbt is a build tool for Scala

3 - Task

3.1 - Console

You can start the Scala interpreter inside sbt using the console task.

$ sbt
> console
[info] Updating {file:/C:/Users/gerard/}gerard...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Starting scala interpreter...
[info]
Welcome to Scala version 2.10.4 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_79).
Type in expressions to have them evaluated.
Type :help for more information.

scala>

3.2 - Compile

$ cd project/Path
$ sbt
> compile

3.3 - Test

$ cd project/Path
$ sbt
> test

3.4 - Run

If your project has an object with a main method (or an object extending the trait App), then you can run the code in sbt easily by typing run.

$ cd project/Path
$ sbt
> run

4 - Idea

5 - Documentation / Reference

lang/scala/sbt.txt ยท Last modified: 2018/07/10 10:37 by gerardnico