We had a utility (a Gradle plugin, to be exact) for resolving external dependencies here:
There is one sample on how to use it:
I’ll add a tutorial to Tips and Tricks. Although, I hope the repository’s README and the sample are clear enough to follow.