We are currently using Maven as our build tool and there is a directive to migrate to Gradle. Our current setup is:
I do the following:
Define a gradle script (something like a parent pom)
Apply it (something like extending) in my build.gradle file
apply from: 'https://youUrlHere/parent.gradle'
For more info, you can have a look here: http://forums.gradle.org/gradle/topics/inheriting_from_a_parent_not_in_the_same_project
Hope this helps.