How can I get gradle 1.10 to use my local maven repository? When I run my gradle script it always looks for the artifact in /Applications/Android Studio.app/sdk/extras/android/m2repository/
instead of ${HOME}/.m2/repository/
In the build.gradle I have tried:
repositories {
mavenCentral()
mavenLocal()
}
and tried this:
repositories {
mavenCentral()
maven {
url '${HOME}/.m2/repository/'
}
}
I then have a dependency that is located in my local .m2 repository:
dependencies {
compile 'com.android.support:support-v4:20.0.+'
compile 'com.android.support:appcompat-v7:20.0.+'
compile 'com.google.android.gms:play-services:4.0.30'
compile 'com.profferapp:proffer_dto_customer_android:1.0'
compile 'com.test:artifact:1.0' // this is in my .m2 repository
}
None of these configurations point to my local maven repository.