remove unnecessary dependencies
improve Grails version discovery strategy