Gradle tasks from build.gradle are not getting listed -


the gradle task have added build.gradle not getting listed.

this how build.gradle looks

task helloworld {   dolast {    println 'hello world gradle.'       } } 

however when run gradle tasks task helloworld not listed. please help.

the gradle version following.

$ gradle -v  ------------------------------------------------------------ gradle 3.4.1 ------------------------------------------------------------  build time:   2017-03-03 19:45:41 utc revision:     9eb76efdd3d034dc506c719dac2955efb5ff9a93  groovy:       2.4.7 ant:          apache ant(tm) version 1.9.6 compiled on june 29 2015 jvm:          1.8.0_31 (oracle corporation 25.31-b07) os:           mac os x 10.11.6 x86_64 

looks need use --all switch. following works.

$ gradle tasks --all 

Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -