I installed SBT v0.12.4. Now I want to update it to v0.13.x, so I have used the command
brew install sbt
It says that it has correctly installed SBT 0.13.x. but if I ask on terminal the version of SBT, it says 0.12.4. How to update it?
In the Project tool window, in the source root directory, locate the build. properties file and open it in the editor. In the editor explicitly specify the version of sbt that you want to use in the project. The newer sbt versions(1.0 +) will create the build.
Run the SBT console and then type sbtVersion to check the SBT version, and scalaVersion for the Scala runtime version.
There are two sbt versions:
The sbt-launcher
. This is used to download and run a particular sbt version. This is what you installed with brew. If you type sbt --version
it should tell you the version of the launcher brew installed.
sbt itself (for building projects). This is controlled via a project/build.properties
file by project. So one launcher can launch many versions of sbt, and is generally backwards compatible. To update this version, simple change the sbt.version
property in project/build.properties
.
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