This has probably been answered, but no search criteria i input gives me what i’m looking for.
I’m using the demo gradle project:
But in our organization we use Artifactory, which provides you a build.gradle script to support configuring the build for dependency resolution and push.
I don’t want to have to repeat the Artifactory configuration for every project. So i tried to put the build.gradle file in my ~/.gradle directory, but it didn’t resolve to our artifactory repository.
I tried to name the file init.gradle, which then locates the file. However it doesn’t resolve the properties, as it’s before build configurations are applied.
Is there a place, similar to Maven’s setting.xml, where global configuration options can be applied, without having to be repeated ?