From 82c599d90787040e2f35df85e3fa1eb13ee1a24e Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Sun, 8 Mar 2015 10:33:28 +0000 Subject: [PATCH] Add notes about Project.settings enhancements. --- ...settings-with-settings-definition.markdown | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 notes/0.13.8/define-project-settings-with-settings-definition.markdown diff --git a/notes/0.13.8/define-project-settings-with-settings-definition.markdown b/notes/0.13.8/define-project-settings-with-settings-definition.markdown new file mode 100644 index 000000000..37120e2d9 --- /dev/null +++ b/notes/0.13.8/define-project-settings-with-settings-definition.markdown @@ -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]