如何使用最新的SBT

How to use latest SBT

我有 SBT 0.13.7。我正在尝试在 master 上使用 0.13.8-SNAPSHOT。

我下载代码,进行一些更改,然后在本地发布组织。scala-sbt/main/0.13.8-SNAPSHOT jar。

我有一个项目 build.properties sbt.version=0.13.8-SNAPSHOT

当我开始sbt时,我看到了

[info] Loading global plugins from /home/paul/.sbt/0.13/plugins
[info] Updating {file:/home/paul/.sbt/0.13/plugins/}global-plugins...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] downloading https://repo.typesafe.com/typesafe/ivy-snapshots/org.scala-sbt/main/0.13.8-SNAPSHOT/jars/main.jar ...
[info]  [SUCCESSFUL ] org.scala-sbt#main;0.13.8-SNAPSHOT!main.jar (2860ms)
[info] Done updating.
[info] Loading project definition from /home/paul/Private/lucid/sbt-cache/project
[info] Updating {file:/home/paul/Private/lucid/sbt-cache/project/}sbt-cache-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.

如何改用本地版本的 SBT?

CONTRIBUTING 中所述,您可能需要 运行 reboot full 清理启动目录。