The simplest way to achieve this is layout the jars in a maven style directory layout.
Eg:
mavenRepo/group/PickRandomStudent/1.0/PickRandomStudent-1.0-javadoc.jar
mavenRepo/group/PickRandomStudent/1.0/PickRandomStudent-1.0-sources.jar
mavenRepo/group/PickRandomStudent/1.0/PickRandomStudent-1.0.jar
You can then reference the dependency in your build
repositories {
maven {
url file('mavenRepo')
}
}
dependencies {
compile 'group:PickRandomStudent:1.0'
}
This has the added benefit that the jars can now properly participate in Gradle’s dependency resolution process