Add notes about Project.settings enhancements.

This commit is contained in:
Dale Wijnand 2015-03-08 10:33:28 +00:00
parent a058a38b7b
commit 82c599d907
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
[@dwijnand]: https://github.com/dwijnand
[1902]: https://github.com/sbt/sbt/pull/1902
### Fixes with compatibility implications
### Improvements
- Facilitate nicer ways of declaring project settings. See below. [#1902][1902] by [@dwijnand][@dwijnand]
### Bug fixes
### Nicer ways of declaring project settings
Now a `Seq[Setting[_]]` can be passed to `Project.settings` without the needs for "varargs expansion", ie. `: _*`
Instead of:
lazy val foo = project settings (sharedSettings: _*)
It is now possible to do:
lazy val foo = project settings sharedSettings
Also, `Seq[Setting[_]]` can be declared at the same level as individual settings in `Project.settings`, for instance:
lazy val foo = project settings (
sharedSettings,
version := "1.0",
someMoreSettings
)
[#1902][1902] by [@dwijnand][@dwijnand]