GRADLE-3219 - cache the location of the local Maven repo

In order to determine the local repository location, user's settings.xml file
is read. There's no need to do this every time an instance of the repository
is created. In multi-project builds this happens at least once per project.
@alkemist