Enhance gradle idea task

#143

Please test, review and comment this pull request.