gradlebuild.gradleparent-childproperties-fileparent-pom

Is it possible to have a remote gradle.properties file


I would like to have a remote gradle.properties (living on a server somewhere) that I am able to pull into my build.gradle and use.

Or if there is a good way to extend gradle like a parent pom for gradle... I looked for this method first but did not find any good/up to date results...

The idea is, if I have a lot of project that all need the same version I can update them all using one file. This way I will not have to pull each repository manually edit the file then commit changes and push...

If there is any other method that will solve this problem I am open to any solutions that are good practice. Thanks!


Solution

  • For general Gradle configuration, you can create a custom plugin and publish it either internally or externally (Artifactory, Maven Central, etc).

    For maintaining a consistent versions of dependencies (Maven dependency management BOM-like), then you'll want to create/publish a platform: