Fix for GRAILS-8727: The last class in a *GrailsPlugin.groovy file is treated as the plugin class