我的项目布局就像任何其他Play项目一样,除了我在项目文件夹中有一个scala文件夹,我想在Build.scala中使用
projectRoot
...
project[projectRoot-build]
Build.scala
plugins.sbt
scalahelpers
helpers.scala
然后在Build.scala里面......(在这里概括很多)
import scalahelpers._
object ApplicationBuild extends Build
{
....
}
object DeploySettings
{
//Then I use classes inside of helpers.scala in here
}
当我在导入scalahelpers之前使用activator命令启动项目时,我的Build.scala文件工作正常。,但是当我添加导入scalahelpers时。 sbt说它无法找到对象扩展器。
似乎必须有一种方法来引用scala文件,类似于在plugins.sbt中添加库依赖项的方式。我的IDE看到scalahelpers就好了,Build.scala没有错误,直到我运行activator命令。如何让它识别helpers.scala?我正在使用游戏2.3.6。谢谢!