Defines the Scala instance to use for compilation, running, and testing. To see the Scala version and location used by the particular project try show scalaInstance which inspect scalaInstance Project-specific version is specified by scalaVersion sbt settings which downloads Scala to coursier cache location. System-wide installation ends up somewhere on the PATH like /usr/local/bin/scalaĪnd can be installed in various ways, personally I recommend coursier one-click install for Scala curl -Lo cs & chmod +x cs &. The key concept to understand is the difference between system-wide installation and project-specific version. For example, on Linux, all we now need is: To solve this problem, the Scala Center contracted Alexandre Archambault in January 2020 to add a one-click install of Scala through coursier. Should I install Scala itself? sbt? Some other build tools? What about a better REPL like Ammonite? Oh and before all that I need to install Java? Installing Scala has always been a task more challenging than necessary, with the potential to drive away beginners. Or the documentation is not accurate and it should be "to use specific version of scala, need to download specific scala version on your own"?Īs per the answer by mario-galic, in ONE-CLICK INSTALL FOR SCALA it is said: Then how can we make sure the scala version is 2.12 if we install sbt?
You will need to use a compatible Scala version (2.12.x). Then, install Scala.either by installing an IDE such as IntelliJ, or sbt, Scala's build tool. There are multiple binary incompatible scala 2 versions, however the document says the installation is either via IDE or SBT.