Pass project to AdapterRegistry lookup in tasks.

We need this to use the newly added project specific
adapters feature.