将另一个非托管源文件添加到我的 Play 项目中



我尝试将另一个源目录添加到我的游戏项目中

def temporarySources = Def.setting { (baseDirectory in Compile).value / "temporary" }

,然后添加到设置

(unmanagedSources in Compile) += temporarySources.value

运行sbt test后,SBT抱怨,目录不存在,尽管我确定它在那里(我可以CD到目录)

我想你需要unmanagedSourceDirectories而不是unmanagedSources,请尝试以下设置:

unmanagedSourceDirectories in Compile += (baseDirectory.value / "temporary"),
unmanagedSourceDirectories in Test    += (baseDirectory.value / "temporary")

最新更新