Perl has a nice http://perldoc.perl.org/functions/use.html use directive to
verify the current Perl version: "use v5.6.1;"
With Gradle changes introduced in milestone-4 ("You should use the
idea.project.jdkName". "You should use the idea.module.downloadSources".
"You should use the idea.module.downloadJavadoc" ) which are not backward
compatible with milestone-3 it probably makes sense to introduce a similar
directive to Gradle.
Something like
apply gradle: '1.0-milestone-4'
Similar to
http://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html.
This will make sure Gradle is at least of the version specified or newer,
depends on how rigid the verification can be and if it allows
http://maven.apache.org/enforcer/enforcer-rules/versionRanges.html
upper/lower bounds . It will also answer questions like "What Gradle version
do I need to run this build" ?
-----
Best regards,
Evgeny
evgeny-goldin.com
--
View this message in context:
http://gradle.1045684.n5.nabble.com/Verifying-Gradle-version-tp4675891p4675891.html
Sent from the gradle-user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email