Gradle guides often declare the local maven repository like this:
repositories {
mavenLocal()
}
For me, this does not work, even if have set environment variables M2_HOME or MAVEN_HOME pointing to my maven installation directory. I think the point is: the root directory of my local maven repository is somewhere else, defined in settings.xml of maven/conf. And it seems that Gradle is not evaluating this settings.xml.
So for me the only solution is define the path to the repository like this:
maven {
url uri('D:/Java/mvn-repo')
}
Is this true? Or can I define my maven repository root directory in some global settings definition?