xref
xref

Reputation: 1761

Play framework v2, single place to store version information?

Related to this question, is there a best place to store version information so it is accessible within Play 2 project and not duplicated? We have multiple application.conf files (each developer has one) so that's not a great place for version information for us. Also the SBT buildInfo plugin seems like overkill for a simple version number.

A comment at the end of the linked question says to store version info in Global.java, then it will be accessible in your play app (such as to display in your footer). Can you then ignore program name/version in Build.scala and just maintain your actual name/version in Global.java?

Upvotes: 1

Views: 153

Answers (1)

Marius Soutier
Marius Soutier

Reputation: 11274

Use the application.conf and include it in your developer conf files with include "application.conf" on the very first line.

Upvotes: 4

Related Questions