How to get list of default tasks that gradle will run

(jim northrop) #1

must have missed something in the gradle docs - is there a command line switch to show which gradle tasks will typically execute ?

i am doing this

apply plugin: 'war'
defaultTasks 'remove', 'copy1',
'copy3', 'makeZip', 'war'

which works fines. can also gradlew check --info for a verbose look-see. seeking something like

gradlew --what-are-ya-planning-to-do

(Benjamin Muschko) #2

To determine the order of tasks executed for the build without actually performing its actions you can use the –dry-run command line option.

For default tasks: $ gradle --dry-run For a specific task: gradle myTask --dry-run

(jim northrop) #3

magic news - thx Benjamin