I have never created a plugin based on an application written earlier, but looking at the documentation for grails plugins , you can read the following expression:
The structure of the Grails plugin is exactly the same as the regular directory structure of the Grails project, except that in the root of the plugins directory you will find the Groovy plugin file called the “plugin descriptor”.
Therefore, I would suggest creating a new plugin with grails create-plugin *your-plugin-name* and copy all the files from your application to the plugin.
stefanglase
source share