mirror of https://github.com/sbt/sbt.git
Implement Project#withId
This commit is contained in:
parent
d997fe8043
commit
530c405b2f
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Reference in New Issue