Is there any way to find current version of Scala
that I installed from command prompt?
As you know in command prompt Java -version
gives us current version of Java
in the system, and I am wondering if there is any command for Scala
that gives me its current version.
I follow this instruction to set up Scala
in Windows
- Download the sbt installer from here: http://scalasbt.artifactoryonline.com/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.12.4/sbt.msi
- Run the installer
Verify that sbt is installed correctly: open the Command Prompt and type sbt sbt-versio
n, you should see the version number of sbt (the first time you run it, sbt will download libraries from the internet). If you have problems installing sbt, ask for help on the forums.
And the tutorial says, it download dependencies when sbt sbt-versio
is ran or may be I got that wrong?
This one works for me:
sbt scalaVersion
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With