Converted the removeQ2Wdependencies ant task to gradle task
Updated the retrieve code task for cleaning task