How to install SBT on CentOS 7
How to install SBT on CentOS 7
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.
Install Java
yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel -y
Check Java Version:
java -version
[root@dev-server ~]# java -version
openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-b08)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)
[root@dev-server ~]#
Install Scala
wget http://downloads.lightbend.com/scala/2.11.8/scala-2.11.8.rpm
yum install scala-2.11.8.rpm
Install SBTyum install scala-2.11.8.rpm
curl https://bintray.com/sbt/rpm/rpm | 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
sbt package
No comments