Sergey
Sergey

Reputation: 3721

Storing Gradle 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.

Upvotes: 1

Views: 194

Answers (1)

Opal
Opal

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

Related Questions