Play Framework 2: Read the application version defined in Build.scala

前端 未结 4 485
闹比i
闹比i 2020-12-03 01:33

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

4条回答
  •  醉话见心
    2020-12-03 02:24

    You can get the current version of Play by using:

    play.core.PlayVersion.current();
    

提交回复
热议问题