android Split a Gradle Build File TL;DR: If you can, use ext {} with constants (hash). You can do call pointer things too! In the past days I've been trying to add some functionality to my Gradle build file so the version would be determined from the git tag. I've found this