refactore gradle tasks dependencies