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.
JavaAndroidProgrammingDB Dev ToolsWeb Development

Avatar of undefined
Last Comment
David Johnson, CD

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
David Johnson, CD

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23