fix for GRAILS-10640 and GRAILS-10671 "Excludes in BuildConfig.groovy are not working for inherited build scope dependencies"