We have a
global.gradle file in the Gradle user home that all projects
apply from. Among other things it applies the
maven-publish plugins. I’d also like to be able to use it for community plugins, for instance the
release plugin. I haven’t been able to figure out how.
Plugins blocks can’t be sourced from another file; using a
buildscript block in
global.gradle would solve half the problem except it doesn’t seem to affect the classpath of the including file; the
pluginRepositories route doesn’t seem to do the trick either.
Am I missing a way to do this? I’ve looked around the documentation for plugins, init scripts, release 2.14, settings, and so on without much luck.