This exercise's build.gradle
script contains hello
and goodbye
tasks.
- Run
./gradlew goodbye hello
- Notice that "see you later!" appears before the "Hey there!" message.
Configure the tasks so goodbye
runs after the hello
task.
(This should only apply in case both are explicitly called,
avoid creating task execution dependencies.)
- Run
./gradlew goodbye hello
- Assert that they ran in the correct order (
hello
->goodbye
) - Run
./gradlew goodbye
- Assert that
hello
did not run