Convert grails app to plugin

后端 未结 2 832
走了就别回头了
走了就别回头了 2021-01-12 04:36

I started a grails application by grails create-app. For modularity, I feel like it would be better that component be a plugin. Can I convert this application into a grails

2条回答
  •  抹茶落季
    2021-01-12 05:14

    I never created a plugin based on an application written before but looking at the documentation for grails plugins you can read the following statement:

    The structure of a Grails plugin is exactly the same as a regular Grails project's directory structure, except that in the root of the plugin directory you will find a plugin Groovy file called the "plugin descriptor".

    So I would suggest to create a new plugin with grails create-plugin *your-plugin-name* and copy all files from your application into the plugin.

提交回复
热议问题