Introduce projectToLocalProject to replace projectToRef

Fixes #3757
This commit is contained in:
Dale Wijnand 2017-12-21 16:11:17 +00:00
parent fd8b422488
commit 4752084f91
No known key found for this signature in database
GPG Key ID: 4F256E3D151DF5EF
2 changed files with 15 additions and 1 deletions

View File

@ -754,7 +754,9 @@ object Project extends ProjectExtra {
EvaluateTask(extracted.structure, taskKey, state, extracted.currentRef, config)
}
implicit def projectToRef(p: Project): ProjectReference = LocalProject(p.id)
def projectToRef(p: Project): ProjectReference = LocalProject(p.id)
implicit def projectToLocalProject(p: Project): LocalProject = LocalProject(p.id)
final class RichTaskSessionVar[S](i: Def.Initialize[Task[S]]) {
import SessionVar.{ persistAndSet, resolveContext, set, transform => tx }

View File

@ -0,0 +1,12 @@
[@dwijnand]: https://github.com/dwijnand
[#3757]: https://github.com/sbt/sbt/issues/3757
[#3836]: https://github.com/sbt/sbt/pull/3836
### Fixes with compatibility implications
### Improvements
- Introduces `projectToLocalProject` to replace `projectToRef`. [#3757][]/[#3836][] by [@dwijnand][]
### Bug fixes