diff --git a/grails-core/src/main/groovy/org/codehaus/groovy/grails/plugins/publishing/PluginDescriptorGenerator.groovy b/grails-core/src/main/groovy/org/codehaus/groovy/grails/plugins/publishing/PluginDescriptorGenerator.groovy index c8373e21462..99b6716756c 100644 --- a/grails-core/src/main/groovy/org/codehaus/groovy/grails/plugins/publishing/PluginDescriptorGenerator.groovy +++ b/grails-core/src/main/groovy/org/codehaus/groovy/grails/plugins/publishing/PluginDescriptorGenerator.groovy @@ -136,7 +136,8 @@ class PluginDescriptorGenerator { if (pluginProps[p]) "${p}"(pluginProps[p]) } xml.resources { - File commonResourceBase = filterPluginDir(pluginProps['pluginDir']?.file) + final pluginDir = pluginProps['pluginDir'] instanceof String ? new File(pluginProps['pluginDir']) : pluginProps['pluginDir']?.file + File commonResourceBase = filterPluginDir(pluginDir) for (r in resourceList) { def matcher = r.URL.toString() =~ ARTEFACT_PATTERN