Link to home
Create AccountLog in
Avatar of NishantKashyap
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]/[module]/[revision]/[artifact].[ext]"
        ivyPattern "lib/com/[organization]/[module]/[revision]/[artifact].[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.
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account