Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check sbt version?

Tags:

sbt

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.

like image 443
jpswain Avatar asked Dec 11 '11 00:12

jpswain


People also ask

What is the latest sbt version?

sbt 1.4. 0 / Zinc 1.4.

How do I know my sbt version Mac?

Running the command, "sbt sbt-version" will simply output your current directory and the version number.

How can I tell if sbt is installed on Windows?

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.


1 Answers

$ 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.

like image 178
Steffen Avatar answered Oct 03 '22 09:10

Steffen