Cheating on a little answer from @ daniel-olszewski.
In project/build.sbt declare a dependency on Configafe Config :
libraryDependencies += "com.typesafe" % "config" % "1.2.1"
In build.sbt load properties using Configes Config and set the settings:
import com.typesafe.config.{ConfigFactory, Config} lazy val appProperties = settingKey[Config]("The application properties") appProperties := { ConfigFactory.load() } name := { try { appProperties.value.getString("name") } catch { case _: Exception => "<empty>" } }
You can define def , which also set values from properties.
Jacek laskowski
source share