SBT aka Simple Build Tool is used to build scala applications. It packages scala applications in the jar file. SBT can be installed on Linux Mac and Windows platform.
In this tutorial, we will discuss on how to install SBT on CentOS 7
In order to make SBT work properly we will need java and scala installed on the system first.
yum install java
Set Java Environment
export JAVA_HOME=/usr/local/java/jdk1.8.0_102 echo $JAVA_HOME /usr/local/java/jdk1.8.0_102 export PATH=$PATH:$JAVA_HOME/bin/ echo $PATH ...:/usr/local/java/jdk1.8.0_102/bin/
wget http://downloads.lightbend.com/scala/2.11.8/scala-2.11.8.rpm sudo yum install scala-2.11.8.rpm
curl https://bintray.com/sbt/rpm/rpm | sudo tee /etc/yum.repos.d/bintray-sbt-rpm.repo
yum install sbt
Using SBT to package application
To package your application you can go to that folder and then run the package command