下面這種寫法作廢了
1 task deprecatedSample << { 2 println 'Sample task' 3 }
替換成下面
1 task newSample { 2 doLast { 3 println 'Sample task' 4 } 5 }
下面這種寫法作廢了
1 task deprecatedSample << { 2 println 'Sample task' 3 }
替換成下面
1 task newSample { 2 doLast { 3 println 'Sample task' 4 } 5 }