Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9208081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:32:19+00:00 2026-06-18T00:32:19+00:00

In the top answer to Play Framework 2: Read the application version defined in

  • 0

In the top answer to Play Framework 2: Read the application version defined in Build.scala it’s suggested that the application version number be specified in conf/application.conf and loaded in Build.scala through play.api.Configuration. I’m using Play 2.1-RC2 and getting the following error message when building:

[error] [...]/project/Build.scala:7: object Configuration is not a member of package play.api 
[error] val conf = play.api.Configuration.load(new File("."))

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 play.api.Configuration is not part of Play’s SBT plugin. I’m guessing I have to include Play’s core libraries in project/plugins.sbt, but I haven’t been able to figure out how. Any ideas?

(note: Would have made this a comment in the original question if I had enough rep points)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:32:21+00:00Added an answer on June 18, 2026 at 12:32 am

    I works in 2.1-RC2 if you use typesafe’s config library directly, without Play’s Configuration wrapper. It’s a Java API, so it is used slightly different than described in this answer.

    In project/Build.scala import the library:

    import com.typesafe.config._
    

    and load the configuration from the file manually. Calling resolve() is needed to resolve substitutions.

    val conf = ConfigFactory.parseFile(new File("conf/application.conf")).resolve()
    
    val appName    = conf.getString("app.name")
    val appVersion = conf.getString("app.version")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I read When to Use Static Classes in C# but the top answer didn't
In reference to the top answer given in this post , I've noticed that
I just read the top answer at this post: Problem inserting string or NULL
See the top answer to this question: What exactly is Spring Framework for? Im
In Hidden Features of Java the top answer mentions Double Brace Initialization , with
Using top it's easy to identify processes that are hogging memory and cpu, but
The top answer to this question tells me how to stop/start a remote service.
In the top answer in What should a developer know before building a public
I followed the top answer here, see below for code to get system memory
Reading what is currently the top answer to a recent question on how/whether to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.