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 repository and localRepo is only used for group localRepo. localRepo only holds private jars so we do not want it to be used as the first repo and we do not want to spend a long time querying mavenCentral for jars that will not exist.
Basically I would like to say in the dependency to use a specific repo or that the local ivy repo is only to be used for specific groups. Is there an easy way to do this?