top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to check sbt version?

+3 votes
1,278 views

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.

posted Jun 28, 2016 by Shivam Kumar Pandey

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes
$ 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
answer Jun 29, 2016 by Karthick.c
Similar Questions
+1 vote

I just got started with Scala/LiftWeb/Sbt developing, and I'd like to develop a project using sbt.

+3 votes

Which build tool is the best for Scala? What are the pros and cons of each of them? How to I determine which one of them to use in a project?

...