0
我的Gradle任务停止显示group
和description
in ./gradlew tasks
,因为我在根build.gradle
中添加了exec {}
。使用exec时,为什么gradle任务不显示组或描述?
怎么回事,我该如何恢复?
task doSomething << {
group 'yourGroupName'
description 'Runs your bash script'
exec {
workingDir "$projectDir/../pathto/"
commandLine 'bash', '-c', './bashscript.sh'
}
}
其他一切作品。
哎呀,这些Gradle'isms ......这做到了。 – not2qubit