How to configure gradle to use a local repository only for certain dependency groups?
问题 Working off the gradle dependency docs, we have a build.gradle with snippets like this. repositories { mavenCentral() ivy { name = 'localRepo' artifactPattern "http://localRepo.com/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" } } dependencies { compile group: 'localRepo', name: 'my-private-library', version: '2.5' } This setup does download everything correctly, but I would like to tweak it so that things in group localRepo are only attempted to be pulled from the ivy