How do I check which version of sbt I'm running?
I have the bash file set up that uses sbt-launch.jar
, and it works, but
$ sbt version
only shows the "project version" (0.1) and
$ sbt --version
does nothing.
sbt 1.4. 0 / Zinc 1.4.
Running the command, "sbt sbt-version" will simply output your current directory and the version number.
Verify InstallationUse the WindowsKey + R , type cmd . Alternatively, navigate to the . sbt (for example, in C:\Users\Hopper ) and type cmd in the address bar. Type sbt about to get version information, verifying it is installed.
$ sbt sbtVersion
This prints the sbt version used in your current project, or if it is a multi-module project for each module.
$ sbt 'inspect sbtVersion' [info] Set current project to jacek (in build file:/Users/jacek/) [info] Setting: java.lang.String = 0.13.1 [info] Description: [info] Provides the version of sbt. This setting should be not be modified. [info] Provided by: [info] */*:sbtVersion [info] Defined at: [info] (sbt.Defaults) Defaults.scala:68 [info] Delegates: [info] *:sbtVersion [info] {.}/*:sbtVersion [info] */*:sbtVersion [info] Related: [info] */*:sbtVersion
You may also want to use sbt about
that (copying Mark Harrah's comment):
The about command was added recently to try to succinctly print the most relevant information, including the sbt version.
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