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:
https://gist.github.com/bstopp/6116d46b2eb488a4e77e
But in our organization we use Artifactory, which provides you a build.gradle script to support configuring the build for dependency resolution and push.
https://gist.github.com/bstopp/18e8038fde96a7a9c67d
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 ?
Thanks,
-B