Improve the solution that ensures the correct version of spring, groovy and grails jars by reading info from GrailsCoreDependencies