Professional Documents
Culture Documents
True
To execute the hello task in the build file, type ___ on the command line.
gradle hello or gradle -q hello
task a {
doLast { println 'A'
}}
task b(dependsOn: a) {
doLast { println 'B'
}}
task c(dependsOn: a){
DoLast { println 'C'
}}
task a{
ext.myProperty = "Hello"
}
task b{
doLast {
println a.myProperty
println c.myProperty
}}
task c(dependsOn: b){
ext.myProperty = "Hey"
println "Hi"}
Final: