Saturday, May 12, 2018

Setting up SBT tool ( Scala Build Tool) - 2.10.6 version




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"

------


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.scala

                      object HelloWorld extends App {

                                println("Welcome to SBT.....")

                               }


$ cd SampleSBT/
$ sbt run


First look of  SBT 

                 










No comments:

Post a Comment

Hyderabad Trip - Best Places to visit

 Best Places to Visit  in Hyderabad 1.        1. Golconda Fort Maps Link :   https://www.google.com/maps/dir/Aparna+Serene+Park,+Masj...