Properly call publishLocal before gradle-model:test

The previous mechanism manually set up task dependencies
and failed to include base projects (only included the ones
from tools/build).

This dynamically look for all publishLocal and creates :publshLocal
to depend on them.

Change-Id: I83ce8c4f05a1f22d666d3f612ae091b72082f0fa
4 files changed