Correctly configure Grails if plugin present
fix unnecessary warnings