1. create a plugin project, add a foo.MyDataSource.groovy, package the plugin project
2. create a normal project, install the plugin, and run-app
3. check the ./grails/*/classes directory (and optionally verify by any other mean)
if there are any technical reason that make it impossible to name a plugin class with DataSource suffix, please provide some explanation.
There are many reasons to call a class DataSource, e.g. one may want to create a LoadBalancing data source plugin that offer a custom Data Source implementation. For my case, I simply like to call a class DataSource. (i wrote a server-side object to represent a YUI data source)
Workaround: rename the class so sth else.