我尝试使用位于Github
中的以下代码引用另一个sbt
项目作为build.sbt
中的构建依赖项:
lazy val dependency = RootProject(uri("..."))
// The Play project itself
lazy val root = (project in file("."))
.enablePlugins(Common, PlayScala, GatlingPlugin)
.configs(GatlingTest)
.settings(inConfig(GatlingTest)(Defaults.testSettings): _*)
.dependsOn(dependency)
.settings(
name := """play-scala-rest-api-example""",
scalaSource in GatlingTest := baseDirectory.value / "/gatling/simulation"
)
我得到了错误:
Runtime reference to undefined setting:
[error]
[error] ProjectRef(uri("..."), "dependency")