/ Published in: Groovy
Dummy comment to make this snippet visible.
Expand |
Embed | Plain Text
// Laurence Toenjes 2012 // preserve dependency task order for Gradle (put this near the top of your gradle build file) // example: task( 'seq-alpha', dependsOn: orderTasks( 'alpha bravo charlie' ) ) << { /* your task code */ } // To view task dependency do cmd: gradle tasks --all newTask.dependsOn << "${aTaskName}"; def result = newTask; } } } ///////////////////////////////////////////////////////////////////////////// // used by taskInfo return filter1; } // use this recursive routine to print out an indented task dependency. // example call: taskInfo( 'someTaskName' ); // uses calcSubTasks( aTask ) aLevel++; print indent; println "${aTask.name}"; taskInfo( theTask, aLevel ) } }
You need to login to post a comment.
