You could either use system properties or create tasks (or both) for the
versions as I do, e.g.
init.doFirst {
...
if (System.getProperty('major') != null || dag.hasTask('uploadMajor')) {
... // calculate major version
[ 'uploadMajor', 'uploadMinor', 'uploadPatch' ].each {
project.createTask(it, dependsOn: uploadLibs)
}
Then you can call your script:
- gradle -Dmajor uploadLibs
or
- gradle uploadMajor
--
View this message in context:
http://www.nabble.com/DAG%2C-doFirst%28%29-tp20255970p20261110.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