Setting up SBT tool ( Scala Build Tool) - 2.10.6 version
//create sbt project
$ mkdir SampleSBT
$ cd SampleSBT/
$ mkdir -p src/main/scala
$ touch build.sbt
$ nano build.sbt
//add the below code
name := "Sample"
version:= "0.1"
scalaVersion := "2.10.6"
------
$ mkdir SampleSBT
$ cd SampleSBT/
$ mkdir -p src/main/scala
$ touch build.sbt
$ nano build.sbt
//add the below code
name := "Sample"
version:= "0.1"
scalaVersion := "2.10.6"
------
1 Download from GIT hub in the Cloudera VM
directly using wget.
U Untar the downloaded file to the below location using command
tar -xvf sbt-0.13.15.tgz
S Check SBT version and make it set in environment
-> Test environment with scala initial example :
$ touch src/main/scala/HelloWorld.scala
$ nano src/main/scala/HelloWorld.scalaobject HelloWorld extends App {
println("Welcome to SBT.....")
}
$ cd SampleSBT/
$ sbt run
First look of SBT
No comments:
Post a Comment