I'm trying to separate various settings from the build definition in my Play! 2.1 application.
I defined some settings in build.sbt as follows:
name := "My Project"
version := 1.0
How can I reuse these values in Build.scala?
object ApplicationBuild extends Build {
val main =
// Doesn't compile since name and version are SettingKeys, not Strings
play.Project(name, version).settings(
// ...
)
}
Thanks a lot!