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