From 530c405b2f9ba5fdde45801ceafd62921587402d Mon Sep 17 00:00:00 2001 From: Dale Wijnand Date: Wed, 4 Oct 2017 13:41:46 +0100 Subject: [PATCH] Implement Project#withId --- main/src/main/scala/sbt/Project.scala | 2 ++ notes/1.1.0/project-id.md | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 notes/1.1.0/project-id.md diff --git a/main/src/main/scala/sbt/Project.scala b/main/src/main/scala/sbt/Project.scala index 21956b4f7..0a92c1eab 100755 --- a/main/src/main/scala/sbt/Project.scala +++ b/main/src/main/scala/sbt/Project.scala @@ -177,6 +177,8 @@ sealed trait Project extends ProjectDefinition[ProjectReference] { */ def configure(transforms: (Project => Project)*): Project = Function.chain(transforms)(this) + def withId(id: String) = copy(id = id) + /** Sets the base directory for this project.*/ def in(dir: File): Project = copy(base = dir) diff --git a/notes/1.1.0/project-id.md b/notes/1.1.0/project-id.md new file mode 100644 index 000000000..fb408b1f8 --- /dev/null +++ b/notes/1.1.0/project-id.md @@ -0,0 +1,11 @@ +[@dwijnand]: https://github.com/dwijnand + +[#3601]: https://github.com/sbt/sbt/pull/3601 + +### Fixes with compatibility implications + +### Improvements + +- Adds `Project#withId` to change a project's id. [#3601][] by [@dwijnand][] + +### Bug fixes