gradle << 操作符作废

下面这种写法作废了

  

1 task deprecatedSample << {
2     println 'Sample task'
3 }

替换成下面

1 task newSample {
2     doLast {
3         println 'Sample task'
4     }
5 }

 

posted on 2017-01-04 11:48  c3tc3tc3t  阅读(310)  评论(0编辑  收藏  举报