plugin development
TRANSCRIPT
Learn to create and release a Plugin
By: Vivek & Amit
AGENDA
Create a plugin
Structure of a plugin
Understanding Plugin Artefacts
Packaging a plugin
Obtaining access to grails repository
Releasing a plugin
Upgrading to a new version
Create a Plugin
Grails create-plugin
Structure of a plugin
MyPlugin.groovy
Accessing resources
Packaging a Plugin
grails package-plugin
Obtaining access to grails repository
Create an account at http://xircles.codehaus.org/
Apply as developer at http://xircles.codehaus.org/projects/grails-plugins
Subscribe to dev mailing list at [email protected]
Request for access to grails repository
Username
Short description of your contribution
c)Login and apply as a developer at http://xircles.codehaus.org/projects/grails d)Wait for approval which takes atleast a couple of days.
Releasing a plugin
grails release-plugin
If successfully released, it will show up on the grails list-plugins and http://www.grails.org/plugin/category/all
Points to remember during release
Expected exceptions :Unknown host exception for the SVN repository
Error occurred with release-plugin: svn: Authentication required for ' grails-plugins primary Subversion repository'
MyPlugin/test/test not found
Authentication Failure Exception
Create ~/.grails/settings.groovy
grails.plugin.repos.discovery.grailsplugins="https://USER:[email protected]/grails-plugins" user.svn.username.discovery.grailsplugins="USER" user.svn.username.discovery.grailsplugins="PASSWORD" grails.plugin.repos.distribution.grailsplugins="https://USER:[email protected]/grails-plugins" user.svn.username.distribution.grailsplugins="USER" user.svn.username.distribution.grailsplugins="PASSWORD"
MyPlugin/test/test not found
Exception
Manually created a folder test inside MyPlugin/test/
Upgrading to a new version
Checkout your plugin from the grails repository
Make the required updates
Update the version number in MyPlugin.groovy
grails release-plugin
Thanks...