Working off the gradle dependency docs, we have a build.gradle with snippets like this.
repositories {
mavenCentral()
ivy {
name = \'localRepo\'
Not quite what you want, but we set up our repositories so that developers get all dependencies from the local private repo, and that local private repo caches the maven central repo. This is faster, as dependencies are only pulled once from maven central by the first developer to access them, and also allows you to see what artifacts are being used in your company. Nexus and artifactory and I am sure all other repositories do as well.