How to make Gradle repository point to local directory

If you can't give access to your offshore team, you can copy all dependencies jar that needed to a single directory, and then use flatDir repository.

repositories {
   flatDir {
       dirs 'D:/path/to/local/directory'
   }
}


dependencies {
   compile name: 'name-of-jar'
}

Another way without using flatDir repository is:

dependencies {
    compile files('/path/to/dir/something_local.jar')
}

Instead of configuring flatDir repository, you can declare a local maven repository as following:

repositories {
   maven {
       url 'file://D:/path/to/local/directory'
   }
}

As @Peter Niederwieser mentioned, flatDir repository doesn't support transitive dependency resolution. maven local repository does.