Scala - SBT (Builder)

Card Puncher Data Processing

About

Sbt is a build tool for Scala

Task

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>

Compile

$ cd project/Path
$ sbt
> compile

Test

$ cd project/Path
$ sbt
> test

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

Idea

Scala Sbt Based Project

Documentation / Reference





Discover More
Card Puncher Data Processing
Maven - (Remote Repository|Server)

Remote repository in maven A remote repository (or server) can be defined as: a source to resolve dependency (via HTTP) or as a target to deploy the artifact (via SCP) The definition dependent on...
Card Puncher Data Processing
Maven - Central Repository

The Central repository is the the default repository for Apache Maven but also for other build system such SBT. This is hosted on a nexus repository manager server. ...
Card Puncher Data Processing
Scala - Console (Interactive Shell|REPL)

Console in Scala



Share this page:
Follow us:
Task Runner