I am using org.ajoberstar.grgit in my module level build.gradle like this:
plugins {
id "org.ajoberstar.grgit" version "1.5.0"
}
ext {
Grgit = org.ajoberstar.grgit.Grgit
}
// Some more code
My top-level build.gradle looks like this:
subprojects {
repositories {
mavenCentral()
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
}
The build is executed properly. If I execute it for the first time, it downloads the required files from https://plugins.gradle.org/m2/. I guess this information is coming from the plugin block in the module level build.gradle and download is facilitated by the mavenCentral() command. Also, the files get saved in ~/.gradle/caches/3.4.1 and for subsequent builds, the IDE(Intellij IDEA) uses this location only. My question is that can I download the files to some other places manually and then make the IDE to pick up them from that location?