I use the sbt-buildinfo SBT plugin, which works great.
I would like to improve the following thing: currently, all values in the generated file can only change if the whole sbt project is reloaded, and thus not at every compile run. I would therefore like to prevent BuildInfo from being regenerated at compile time, and instead, directly generate it at project load time only.
Is this possible?
My bad.
sbt-buildinfois smarter than I am… It indeed doesn't regenerate the file if it doesn't need to. In my case, it was regenerating it because I ad added theBuildInfoOption.BuildTimeoption, which adds the build time toBuildInfo, and which causes the regeneration.