Add the following mirror to the mirrors in your ~/.m2/settings.xml file:
<mirror> <id>hive</id> <url>http://${host}:${port}/view/${depot.getName()}</url> <mirrorOf>*</mirrorOf> </mirror>
Add the following to the repositories{...} section in your build.gradle file:
hive { url "http://${host}:${port}/view/${depot.getName()}" }