Skip to main content

Scala Development Environment


If you haven't installed Coursier yet, install it first. (Coursier Installation)

Set up

Now, you can use Coursier to set up Scala development environment easily by just running the following command.

cs setup 

The result may look like

Checking if a JVM is installed
Found a JVM installed under /Users/USERNAME/Library/Caches/Coursier/jvm/adopt@1.11.0-11/Contents/Home.

Checking if ~/Library/Application Support/Coursier/bin is in PATH

Checking if the standard Scala applications are installed
Installed ammonite
Found cs
Found coursier
Installed scala
Installed scalac
Installed sbt
Installed sbtn
Installed scalafmt

Different Java Versions

Would you like to install different Java versions? Check out the Java page.


sbt plugins

echo 'addSbtPlugin("io.github.todokr" % "sbt-project-switcher" % "0.1.4")' >> ~/.sbt/1.0/plugins/sbt-plugins.sbt
echo 'addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.3")' >> ~/.sbt/1.0/plugins/sbt-plugins.sbt
echo 'addSbtPlugin("com.github.cb372" % "sbt-explicit-dependencies" % "0.2.16")' >> ~/.sbt/1.0/plugins/sbt-plugins.sbt


Ammonite REPL