我有一个多项目 sbt,我在其中使用 sbt-release 插件。如果我在子项目中运行发布,一切正常
> project reporter
[info] Set current project to reporter (in build file:/source/storage-integ/)
> release
[info] Starting release process off commit: c069698baf8bb6fca611ab4e7e086398aab473c5
[info] Checking remote [origin] ...
但是当我从 cli运行“ sbt Reporter/release ”时,这不起作用。“ sbt Reporter/compile ”或“ sbt Reporter/Assembly ”在哪里起作用。
$ sbt reporter/release
[warn] Executing in batch mode.
[warn] For better performance, hit [ENTER] to switch to interactive mode, or
[warn] consider launching sbt without any commands, or explicitly passing 'shell'
[info] Loading global plugins from /home/vagrant/.sbt/0.13/plugins
[info] Loading project definition from /source/storage-integ/project
[info] Set current project to root (in build file:/source/storage-integ/)
[error] Expected ':' (if selecting a configuration)
[error] Not a valid key: release (similar: releaseVcs, rpmRelease, rpm-release)
[error] reporter/release
这看起来与另一个 SO帖子非常相似。我尝试releaseSettings
按照建议添加到 build.sbt 但它会引发错误
build.sbt:62: error: not found: value releaseSettings
我试过import sbtrelease.Release._
了,但那会抛出
error: object Release is not a member of package sbtrelease
在这一点上,我觉得提到的解决方案不再有效。releaseSettings
另外,我在 sbt-release 自述文件中没有看到任何参考。知道如何让它工作吗?
sbt.version = 0.13.15 && sbt-release: "1.0.6"