From f2f12022a5672c3f57b8e5fce4227da455ab8024 Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Thu, 31 Mar 2016 16:44:52 +0100 Subject: [PATCH] Deprecate the Build trait --- main/src/main/scala/sbt/Build.scala | 1 + notes/0.13.12/deprecate-Build.markdown | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 notes/0.13.12/deprecate-Build.markdown diff --git a/main/src/main/scala/sbt/Build.scala b/main/src/main/scala/sbt/Build.scala index fcb78074f..bd50f6ee7 100644 --- a/main/src/main/scala/sbt/Build.scala +++ b/main/src/main/scala/sbt/Build.scala @@ -8,6 +8,7 @@ import Keys.{ name, organization, thisProject, autoGeneratedProject } import Def.{ ScopedKey, Setting } // name is more like BuildDefinition, but that is too long +@deprecated("Use .sbt format instead", "0.13.12") trait Build { def projectDefinitions(baseDirectory: File): Seq[Project] = projects def projects: Seq[Project] = ReflectUtilities.allVals[Project](this).values.toSeq diff --git a/notes/0.13.12/deprecate-Build.markdown b/notes/0.13.12/deprecate-Build.markdown new file mode 100644 index 000000000..69c93b869 --- /dev/null +++ b/notes/0.13.12/deprecate-Build.markdown @@ -0,0 +1,10 @@ + [@dwijnand]: https://github.com/dwijnand + [#2530]: https://github.com/sbt/sbt/pull/2530 + +### Fixes with compatibility implications + +- The Build trait is deprecated in favour of the .sbt format [#2530][#2530] by [@dwijnand][@dwijnand] + +### Improvements + +### Bug fixes