Merge pull request #3836 from dwijnand/projectToLocalProject

Introduce projectToLocalProject to replace projectToRef
This commit is contained in:
Dale Wijnand 2018-01-03 16:36:34 +00:00 committed by GitHub
commit f2f44c738c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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