Repo for learning Scala
Install Java 8 via Jabba and sbt.
- Configurable Java version: supports OpenJDK, GraalVM, Zulu and any other Java version that's installable via Jabba.
The sbt
command is installed using brew install sbt
.
sudo apt-get update
sudo apt-get install openjdk-8-jre -y
sudo apt-get remove scala-library scala
sudo wget http://scala-lang.org/files/archive/scala-2.12.1.deb
sudo dpkg -i scala-2.12.1.deb
sudo apt-get update
sudo apt-get install scala -y
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update
sudo apt-get install sbt -y
sbt compile
sbt run