我有这样的build.sbt
文件:
./build.sbt
lazy val root = (project in file(".")
.settings(libraryDependencies ++= Seq(...))
和第二个文件(在同一文件夹中),如下所示:
./release.sbt
lazy val releaseStuff: Def.Setting[Task[Unit]] = DockerSbtPlugin.releaseStuff
lazy val root = (project in file(".").settings(releaseStuff)
但是该命令releaseStuff
无法识别,我得到:
sbt:sitemap> releaseStuff
[error] Not a valid key: releaseStuff (similar: releasePuff, releaseCough)
[error] releaseStuff
[error] ^
难道我做错了什么?
请注意,这releaseStuff
取决于插件,因此如果放在project
文件夹中,它不会编译。