sbt-buildinfo 0.5.0 supports multiple configurations.
buildInfoScopedSettings(Test)
There's a new option called BuildInfoOption.Traits
to mixin traits to the generated object.
buildInfoOptions += BuildInfoOption.Traits("TestTrait1", "TestTrait2")
There's another option called BuildInfoOption.BuildTime
.
buildInfoOptions += BuildInfoOption.BuildTime
This will generate timestamp values as follows:
/** The value is "2015-07-30 03:30:16.849". */
val builtAtString: String = "2015-07-30 03:30:16.849"
/** The value is 1438227016849L. */
val builtAtMillis: Long = 1438227016849L
#65 by @reid-spencer
@pdalpra refactored the code base so the build info can be generated as something other than a Scala source file.
The code generated by sbt-buildinfo 0.5.0 will explicitly import names, so it is -Yno-imports
safe.
A huge thanks to everyone who has helped to improve sbt-buildinfo by reporting bugs and sending pull requests! Pierre Dal-Pra (@pdalpra) joined in as a committer to help @eed3si9n.
According to git shortlog -sn --no-merges 0.4.0..0.5.0
seven people contributed to this release: Eugene Yokota (@eed3si9n), Greg Pfeil (@sellout), Pierre Dal-Pra (@pdalpra), Reid Spencer (@reid-spencer), Olli Helenius (@liff), Dale Wijnand (@dwijnand), and Andreas Flierl (@asflierl).