Property for the directory for the local maven repository

I can use gradle.gradleUserHomeDir to specify the .gradle directory under user home. How can I specify directory for the local maven repository? I need it to comple the following configuration for eclipse:

eclipse {

pathVariables ‘GRADLE_USER_HOME’: gradle.gradleUserHomeDir, ‘M2_REPO’: <What property to use?> }

There is no such property, but perhaps you could convert ‘repositories.mavenLocal().url’ to a file path.