A feature has been added in #39 to the project for users to generate git information to display on the info endpoint. More elegant solutions exist for Maven and Gradle but for SBT there don't seem to be any predefined solutions (Or at least nothing that I could find).
Feature
The solution at the moment isn't too elegant as it requires the app to be restarted after the initial file generation. This issue is to improve upon the current solution.
Proposed Solution
Solution Ideas:
Try and generate the file at compile time rather than runtime? I'm still a beginner with SBT but it seems like you can generate some sources and files at compile time with SBT? (https://www.scala-sbt.org/1.x/docs/Howto-Generating-Files.html) Please correct me if I'm wrong.
Optional extra: Separate the tool into its own executable within the project.
Optional extra: Have the tool run as a test by users.
Background
A feature has been added in #39 to the project for users to generate git information to display on the info endpoint. More elegant solutions exist for Maven and Gradle but for SBT there don't seem to be any predefined solutions (Or at least nothing that I could find).
Feature
The solution at the moment isn't too elegant as it requires the app to be restarted after the initial file generation. This issue is to improve upon the current solution.
Proposed Solution
Solution Ideas: