Gradle depends on multiple tasks

Copy and save the below given code into build.gradle file. Take a look at the following code. task taskX << { println 'taskX' } task taskY(dependsOn: 'taskX') << { println "taskY" } Execute the.