Verify what has been excluded by running grails dependency-report command. You can add a scope as the parameter, for example, grails dependency-report compile, grails dependency-report runtime and so on. In order to be sure that a dependency is excluded, run grails clean-all before the commands mentioned above.
The second step in clearing dependencies is to remove all dependencies and plugins that are generated by Grails. Dependencies and plugins part of BuildConfig.groovy will then become like this.
Grails generates inline comments for almost each property trying to explain what is the purpose of that property. I think if somebody wants to know what is the meaning of a property, he should go to documentation, read about it and fully understand what is it about. Therefore I suggest to remove these comments.