fix for GRAILS-10415 "legacyResolve doesn't resolve dependencies within in-place plugins"