Sbt插件,默认文件设置键

Sbt插件,默认文件设置键,sbt,Sbt,我有一个在project/build.scala中定义的设置键 val databasePropertiesFile = settingKey[File]("The file we use to grab the database login configuration.") 我想根据sourcedirectory为它指定一个默认值,类似这样,但它不编译: databasePropertiesFile := { sourceDirectory / "db/devel.propert

我有一个在project/build.scala中定义的设置键

val databasePropertiesFile = settingKey[File]("The file we use to grab the database login configuration.")
我想根据sourcedirectory为它指定一个默认值,类似这样,但它不编译:

  databasePropertiesFile := {
    sourceDirectory / "db/devel.properties"
  }
设置默认文件必须执行的魔法是什么?

魔法是“.value”:

databasePropertiesFile:={
sourceDirectory.value/“db”/“devel.properties”
}

我的问题是IntelliJ抱怨这种语法。我可以直接在sbt中编译。