Hi Phil,

You can definitely do that. You just need to define a flat directory inside
of your repositories closure (make sure it's within the buildscript
closure).

buildscript {
    repositories {
        flatDir(dirs: "<dir-with-plugin-jar>")
        mavenCentral()
    }

    dependencies {
        classpath ':<plugin-jar-name>:<plugin-version>'
    }
}

Ben


phil swenson wrote:
> 
> I have a plugin project I am starting.  Others in the company have already
> written some plugins, but the way they have it set up to work is you have
> to
> upload a plugin to the artifact repository to actually execute it from the
> build.gradle script(s).
> 
> What I want is an ability to put the built plugin builds in a local
> directory and add that local directory as a "repository" ahead of the
> remote
> artifact repository.
> 
> Could someone point me in the right direction?  Seems to me this is how
> most
> people would dev their plugins...
> 
> Thanks
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Gradle-custom-plugin-question-tp31223212p31223631.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