I have a plugin that uses some GSP views for testing, and I do not want the views to appear in the plugin jar file.
I have constructed the build.gradle to exclude the compiled gsp classes, and added them to the pluginExcludes as documented in https://docs.grails.org/latest/guide/plugins.html.
The result is compiled classes are not in the jar as expected, BUT the views are still represented in the views.properties files in the gsp folder of the plugin jar.
That file seems to be getting used by BinaryGrailsPlugin.initializeViewMap in the grails-core plugin to initialise the plugin, and that throws the PluginException error because the class files do not exist for the views specified.
I think the problem is either view.properties should not contain the excluded gsp, or BinaryGrailsPlugin.initializeViewMap should be using the specified pluginExcludes to filter out the excluded gsp when it initialises the binary plugin