Skip to content

Latest commit

 

History

History
63 lines (40 loc) · 2.29 KB

0.5.0.markdown

File metadata and controls

63 lines (40 loc) · 2.29 KB

allow one build info object per configuration

sbt-buildinfo 0.5.0 supports multiple configurations.

buildInfoScopedSettings(Test)

#61 by @asflierl

BuildInfoOption.Traits

There's a new option called BuildInfoOption.Traits to mixin traits to the generated object.

buildInfoOptions += BuildInfoOption.Traits("TestTrait1", "TestTrait2")

#58 by @liff

BuildInfoOption.BuildTime

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

different renderers

@pdalpra refactored the code base so the build info can be generated as something other than a Scala source file.

#67 by @pdalpra

explicit imports

The code generated by sbt-buildinfo 0.5.0 will explicitly import names, so it is -Yno-imports safe.

#68 by @sellout

contributors

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).