title: Play Framework 2.1: Use play.api.Configuration in Build.scala
body: <p>In the top answer to <a href="https://stackoverflow.com/questions/12369967/play-framework-2-read-the-application-version-defined-in-build-scala">Play Framework 2: Read the application version defined in Build.scala</a> it's suggested that the application version number be specified in <code>conf/application.conf</code> and loaded in <code>Build.scala</code> through <code>play.api.Configuration</code>. I'm using <code>Play 2.1-RC2</code> and getting the following error message when building:</p>
  
  <pre><code>[error] [...]/project/Build.scala:7: object Configuration is not a member of package play.api 
  [error] val conf = play.api.Configuration.load(new File("."))
  </code></pre>
  
  <p>I think this might be caused by the fact that with Play 2.1 build dependencies have to be specified as plugins to SBT, and <code>play.api.Configuration</code> is not part of Play's SBT plugin. I'm guessing I have to include Play's core libraries in <code>project/plugins.sbt</code>, but I haven't been able to figure out how. Any ideas?</p>
  
  <p>(note: Would have made this a comment in the original question if I had enough rep points)</p>