Storing configuration common to multiple projects

I have a few projects in separate Git repositories.
Is there a way to store common Gradle configuration that they are using in one place?

The common configuration includes repositories, tasks etc…

I faund a few possible options here: http://stackoverflow.com/questions/9539986/how-to-share-a-common-build-gradle-via-a-repository