Michael Fortin wrote:
Hi Hans, all,

I've been on the lookout for a grails plugin for some time but it's never materialized. I might have some spare time to try my hand at writing one but I can't find any info in the documentation about how to write a plugin. Where should I start if I wanted take a shot at it?


You need to:
1. implement the Plugin interface
2. make the implementation class available in your build script classpath.
3. usePlugin(PluginImplClass)

You have a couple of options for step 2:
- put the implementation in buildSrc/src/main/java or buildSrc/src/main/groovy - put the implementation in an external build which publishes the plugin implementation class to a repository, and use a settings.gradle file to add it to the build script classpath


Adam


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

   http://xircles.codehaus.org/manage_email


Reply via email to