mavenLocal() ignores maven.repo.path system property

I’m trying to use a custom mavenLocal dir with the ‘-Dmaven.repo.path’ command line option.

I’m still getting errors that the dependencies can not be found in the default path:

Could not find com.google.javascript:closure-compiler:v20130411.
     Searched in the following locations:
         file:/home/pcm/.m2/repository/com/google/javascript/closure-compiler/v20130411/closure-compiler-v20130411.pom
         file:/home/pcm/.m2/repository/com/google/javascript/closure-compiler/v20130411/closure-compiler-v20130411.jar

From the docs RepositoryHandler (Gradle API 8.4)

The location for the repository is determined as follows (in order of precedence): > >

  1. The value of system property ‘maven.repo.path’ if set;

Good catch, this is a documentation mistake in the ‘mavenLocal()’ javadoc. The property should be ‘maven.repo.local’. This will be fixed in 2.4.

https://github.com/gradle/gradle/commit/5405fc964d027e22b7b967dcee25af925eb9492e

Thanks! The other property works.