Hi All,

I have some custom code I have organized into buildSrc for my gradle project
and that all works great.  Now I have downloaded another custom plug in that
I want to build into my project - but I do not want it to clash with my
already existing custom code.  

So created a new directory under buildSrc called plugins and put my custom
plug in there. I dropped a build.gradle into buildSrc and after mucking
around a bit I got it all to compile, and the plugin builds itself a jar.

In my main build, I tried to refer to the custom plug in in the normal way:

apply plugin: 'myCustomPlugin'

But this does not work - I think that somehow the generated plugin jar is
not being added to the project class path?  I see examples of how to add a
plug in dependency when the custom plug in is in a local repository, but how
do you handle this when the plugin is being built in buildSrc?

Jay

--
View this message in context: 
http://gradle.1045684.n5.nabble.com/How-to-add-a-custom-plugin-and-other-extra-source-into-buildSrc-tp3909680p3909680.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