你可以給你的任務(wù)加入一段描述性的文字. 它將會在任務(wù)執(zhí)行的時候顯示出來.
例子 15.18. 給任務(wù)加入描述
build.gradle
task copy(type: Copy) {
description 'Copies the resource directory to the target directory.'
from 'resources'
into 'target'
include('**/*.txt', '**/*.xml', '**/*.properties')
}