Details
Description
http://jira.codehaus.org/browse/GROOVY-4687 is a first step, granted, but it's crude. Further, it requires external configuration (via the system property groovy.grape.report.downloads), which is inconvenient.
I'd like to customize the behavior as artifacts are resolved, providing a callback to the grab method, like so:
def count = 0 groovy.grape.Grape.grab(group:'com.jidesoft', module:'jide-oss', version:'[2.2.0,)', callback: { // update a UI progress bar or do whatever here; 'it' should refer to an object with relevant information println "grabbed ${it.group}:${it.module}:${it.version}; ${(int)(((float)++count)/it.moduleCount)*100)}% done" })