Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do you need to install Scala separately if you use sbt?

Tags:

scala

sbt

Reason I ask, is because it's possible to specify a Scala version in the build.sbt file (using scalaVersion setting), and once you do that, sbt will automatically download that Scala version to use with the project.

I also seem to remember that despite having Scala 2.11.1 on my system, sbt would compile and run with Scala 2.10 if no version was specified.

So the question is, do I need to install Scala separately if I got sbt installed?

like image 365
Electric Coffee Avatar asked Jul 19 '14 10:07

Electric Coffee


1 Answers

No you don't need it. sbt will download Scala for you.

If you install sbt-extras (basically just a script) you don't even need to download sbt: it will automatically download the sbt launcher you need. Very handy since you just need to specify sbt.version in your build.properties and you're good to go.

Edit: removed my comment about not being able to do sbt console in an empty directory, since both sbt and sbt-extras support it now.

like image 129
vptheron Avatar answered Sep 23 '22 08:09

vptheron