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.