NishantKashyap
asked on
how to add multiple repository to gradle
I wanted to download dependencies from different location (maven and one from my custom), I added this in ,my gradle :-
repositories {
jcenter()
ivy {
url "http://XXXXXXX.com"
artifactPattern "lib/com/[organization]/[m odule]/[re vision]/[a rtifact].[ ext]"
ivyPattern "lib/com/[organization]/[m odule]/[re vision]/[a rtifact].[ ext]"
}
}
and the compiling the jar as:-
compile 'organization-name:module- name:1.0' // I have used actual organization-name and moule-name in the code , here its only for representational purpose.
gradle build fails :--
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':testCompile'.
> You cannot mix different URL schemes for a single repository. Please declare separate repositories.
repositories {
jcenter()
ivy {
url "http://XXXXXXX.com"
artifactPattern "lib/com/[organization]/[m
ivyPattern "lib/com/[organization]/[m
}
}
and the compiling the jar as:-
compile 'organization-name:module-
gradle build fails :--
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':testCompile'.
> You cannot mix different URL schemes for a single repository. Please declare separate repositories.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.