Play Framework 2: Read the application version defined in Build.scala
问题 I use the Play Framework 2.0 (2.0.3). I have a Java project and want to read the application version ( appVersion ) defined in Build.scala. What I already saw is that it's possible to read certain configuration details from the Application object provided to Global.java, but didn't find a key called appVersion or similar. 回答1: You can define the version in application.conf and let Build.scala read the value. I did this with the version number and application name. The following works in Play