Automating distribution of external libraries in gradle build.