-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
[111]: https://github.com/sbt/sbt-buildinfo/pull/111 | ||
[126]: https://github.com/sbt/sbt-buildinfo/pull/126 | ||
[128]: https://github.com/sbt/sbt-buildinfo/pull/128 | ||
[141]: https://github.com/sbt/sbt-buildinfo/pull/141 | ||
[150]: https://github.com/sbt/sbt-buildinfo/pull/150 | ||
[151]: https://github.com/sbt/sbt-buildinfo/pull/151 | ||
[155]: https://github.com/sbt/sbt-buildinfo/pull/155 | ||
[156]: https://github.com/sbt/sbt-buildinfo/pull/156 | ||
[157]: https://github.com/sbt/sbt-buildinfo/pull/157 | ||
[164]: https://github.com/sbt/sbt-buildinfo/pull/164 | ||
[@dwijnand]: https://github.com/dwijnand | ||
[@yarosman]: https://github.com/yarosman | ||
[@damdev]: https://github.com/damdev | ||
[@eed3si9n]: https://github.com/eed3si9n | ||
[@xuwei-k]: https://github.com/xuwei-k | ||
[@smarter]: https://github.com/smarter | ||
[@pcejrowski]: https://github.com/pcejrowski | ||
[@bilal-fazlani]: https://github.com/bilal-fazlani | ||
[@xerial]: https://github.com/xerial | ||
[@leviramsey]: https://github.com/leviramsey | ||
|
||
### Breaking change: scala.collection.immutable.Seq | ||
|
||
sbt-buidinfo 0.10.0 will generate `scala.collection.immutable.Seq(...)` instead of `scala.collection.Seq(...)`. | ||
|
||
This was contributed as [#150][150] by [@smarter][@smarter]. | ||
|
||
### Breaking change: output local time | ||
|
||
sbt-buildinfo 0.10.0 will output build time in local time (using JSR-310 `java.time.Instant`) with timezone string. | ||
|
||
```scala | ||
buildInfoOptions += BuildInfoOption.BuildTime | ||
``` | ||
|
||
This was contributed as [#156][156]/[#157][157] by [@xerial][@xerial] and [@leviramsey][@leviramsey] | ||
|
||
### BuildInfoOption.PackagePrivate | ||
|
||
```scala | ||
buildInfoOptions += BuildInfoOption.PackagePrivate | ||
``` | ||
|
||
sbt-buidinfo 0.10.0 adds a new option to make `BuildInfo` package private. This was contributed as [#151][151] by [@pcejrowski][@pcejrowski]. | ||
|
||
### BuildInfoOption.ConstantValue | ||
|
||
```scala | ||
buildInfoOptions ++= Seq(BuildInfoOption.ConstantValue, BuildInfoOption.PackagePrivate) | ||
``` | ||
|
||
sbt-buidinfo 0.10.0 adds a new option to make `BuildInfo` fields [constant value definitions](https://www.scala-lang.org/files/archive/spec/2.12/04-basic-declarations-and-definitions.html#value-declarations-and-definitions) when possible. | ||
|
||
```scala | ||
package hello | ||
|
||
import scala.Predef._ | ||
|
||
private[hello] case object BuildInfo { | ||
/** The value is "helloworld". */ | ||
final val name = "helloworld" | ||
/** The value is "0.1". */ | ||
final val version = "0.1" | ||
|
||
.... | ||
} | ||
``` | ||
|
||
We recommend making `BuildInfo` package private if you use this option. [#164][164] by [@eed3si9n][@eed3si9n] | ||
|
||
### bug fixes and updates | ||
|
||
- Fixes macro hygine [#128][128] by [@dwijnand][@dwijnand] | ||
- Fixes JSON output [#126][126] by [@yarosman][@yarosman] | ||
- Fixes `ScalaCaseClassRenderer` rendering [#111][111] by [@damdev][@damdev] | ||
- Fixes symbol literals by [@eed3si9n][@eed3si9n] | ||
- Adds testing on JDK 11 [#141][141] by [@xuwei-k][@xuwei-k] | ||
- Adds `// $COVERAGE-OFF$` ... `// $COVERAGE-ON$` [#155][155] by [@bilal-fazlani][@bilal-fazlani] |