如何查看 sbt 版本? [英] How to check sbt version?

查看:33
本文介绍了如何查看 sbt 版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何检查我正在运行的 sbt 版本?

How do I check which version of sbt I'm running?

我设置了使用 sbt-launch.jar 的 bash 文件,它可以工作,但是

I have the bash file set up that uses sbt-launch.jar, and it works, but

$ sbt version

只显示项目版本"(0.1)和

only shows the "project version" (0.1) and

$ sbt --version

什么都不做.

推荐答案

$ sbt sbtVersion

这会打印当前项目中使用的 sbt 版本,或者如果它是每个模块的多模块项目.

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

您可能还想使用 sbt about (复制 马克哈拉的评论):

You may also want to use sbt about that (copying Mark Harrah's comment):

最近添加了 about 命令以尝试简洁地打印最相关的信息,包括 sbt 版本.

The about command was added recently to try to succinctly print the most relevant information, including the sbt version.

这篇关于如何查看 sbt 版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆