grails-profiles / web-plugin

0 stars 1 forks source link

What's the difference between web-plugin and plugin? #2

Open dlehammer opened 6 years ago

dlehammer commented 6 years ago

Hi,

I've been unable to determine the difference between this web-plugin and the plugin based on the available readme and documentation. There's probably more to it, otherwise there would be no reason to have 2 different plugin-types :)

Ex. can a web-app use a plugin, or only web-plugin ? How to determine which type to use ?

Best regards

dlehammer commented 6 years ago

I've come across the section Creating and Installing Plugins, that states the following

In Grails 3.0 you should consider whether the plugin you create requires a web environment or whether the plugin can be used with other profiles. If your plugin does not require a web environment then use the "plugin" profile instead of the "web-plugin" profile: screenshot of section

Besides the above vague distinction, another plugin profile is available; rest-api-plugin. Perhaps those in the know could elaborate on the diffenrence and intended usage of the different plugin profiles?