Hi René,

Thanks for your answer. The dependency needs to be applied before I run my
plugin code because it's using it. Yes, I am making the call in the plugin
apply method.


class ThePlugin implements Plugin {
    @Override
    public void apply(Project project) {
        ThePluginConvention thePluginConvention = new ThePluginConvention()
        project.convention.plugins.theplugin = thePluginConvention

       project.buildscript.dependencies.add("classpath",
"commons-lang:commons-lang:2.5") 
       ...
}

It doesn't look like the buildscript dependencies have been resolved at that
point of time.

Thanks,

Ben


--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Defining-buildscript-dependency-in-custom-plugin-tp3620230p3628363.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