How do you control which repository Gradle will search for each dependency? In my particular case, I want to use a certain repository for a certain group and another one for all other groups.
There’s no way to do this currently.
All repositories are searched in the order they are listed.
I would love to have support for influencing which dependency is loaded from which repository. In my case, I have something like this:
repo1
--------
module a (good)
module b (bad)
repo2
--------
module a (bad)
module b (good)
Gradle’s default behavior of searching in order won’t work in this case. And yes, I know the real problem is dodgy repos, but such is life sometimes. I don’t control either repo…
Do you think this is too special case to handle or would this be a reasonable feature?
It might be enough to be able to add repositories on a configuration level, instead of project. This way we can add all ‘special’ dependencies in a different configuration, which our default configurations extend.