Is there a cleaner way to get the gradle version then the code below?
println GradleConnector.newConnector().forProjectDirectory(rootDir).connect().getModel(BuildEnvironment.class).getGradle().getGradleVersion()`
Idealy i would to get the version from the settings.gradle file.
Thanks