我尝试将另一个源目录添加到我的游戏项目中
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")