grails/grails-core — pull request #401 by jchharris (2013-09-19 05:01:15+00:00)
Title: GRAILS-9814 -Prevent all of ${basedir}/src folder from being packaged with a binary plugin

Previously everything below ${basedir}/src was being packaged inside of a binary plugin. The binary plugin packaging should only deal with src/groovy and src/java as these are the directories supported by Grails convention. Anything else below src should be up to the user to deal with. The current behaviour was causing issues if you were building the plugin with maven and had resources under src/main/resources which is the standard mvn location. What was happening is that you would end up with 2 copies of your resources in your resultant binary plugin. One from mvn and one from the Grails packaging.

Fix is to remove the code that was copying ${basedir}/src from the binary packaging. As per existing behaviour, contents under src/groovy and src/java will be copied if the includeSource flag is set.