Is it possible to package gradle scripts in a jar and the reference it from the buildscript section?
I want to do something like this:
buildscript {
dependencies {
classpath 'my.gradle:my-gradle:1.0-SNAPSHOT'
}
}
apply from: 'my/gradle/java-defaults.gradle'
I know I can use apply from: with an url, but that requires me to setup a webserver.
As Matt pointed out, this question is already answered: How to share a common build.gradle via a repository?.
I will try implement a plugin (option 2) that does the default configurations.