Reference&Thanks: http://www.jianshu.com/p/873eaee38cc1 https://github.com/helen-x/gradle-plugin-demo