0.10.0
Breaking change: scala.collection.immutable.Seq
sbt-buildinfo 0.10.0 will generate scala.collection.immutable.Seq(...)
instead of scala.collection.Seq(...)
.
This was contributed as #150 by @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.
buildInfoOptions += BuildInfoOption.BuildTime
This was contributed as #156/#157 by @xerial and @leviramsey
BuildInfoOption.PackagePrivate
buildInfoOptions += BuildInfoOption.PackagePrivate
sbt-buildinfo 0.10.0 adds a new option to make BuildInfo
package private. This was contributed as #151 by @pcejrowski.
BuildInfoOption.ConstantValue
buildInfoOptions ++= Seq(BuildInfoOption.ConstantValue, BuildInfoOption.PackagePrivate)
sbt-buildinfo 0.10.0 adds a new option to make BuildInfo
fields constant value definitions when possible.
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 by @eed3si9n