Reputation: 3721
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.
Upvotes: 1
Views: 194
Reputation: 84854
Yes, it's possible. You can define a gradle file with all the necessary data and expose it, e.g. www.company.com/master.gradle.
Then apply it in the following way:
apply from: 'www.company.com/master.gradle'
in all gradle scripts that require these global settings. This link may be also useful.
Upvotes: 3