I’d say the easiest option would be to store your files in a maven-like folder hierarchy
$PATH/xxx/yyy/lib/1.0/lib-1.0.jar
$PATH/xxx/yyy/lib/1.0/lib-1.0-javadoc.jar
$PATH/xxx/yyy/lib/1.0/lib-1.0-sources.jar
$PATH/xxx/yyy/lib/1.0/lib-1.0.pom (not required but maven can generate this for you)
Then include it via
repositories {
maven {
url uri("$PATH")
}
}
dependencies {
compile 'xxx.yyy:lib:1.0'
}
If you want to script this process you might want to invoke the maven command line