In order to make my own Gradle plugins available in my build scripts I
currently include the following section in all rootProject Gradle build
files:

buildscript {
    repositories {
        mavenRepo name: 'myRepo', urls: 'http://my.repo/'
    }
    dependencies {
        classpath (
            'com.foo.bar:my-plugins:latest.release',
        )
    }
}

subprojects {
    apply plugin: 'my-plugin'
    repositories {
        add rootProject.buildscript.repositories.myRepo
    }
}

As this is always the same I would like to externalize the retrieval of my
own plugins while still supporting an offline build mode. Can this be done
more elegant? Initialization scripts and the wrapper seems to not help much
here!? Thanks.
-- 
View this message in context: 
http://gradle.1045684.n5.nabble.com/How-to-best-access-your-own-Gradle-plugins-tp3287742p3287742.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to