Skip to content

Instantly share code, notes, and snippets.

@lifuzu
Last active December 31, 2015 02:39
Show Gist options
  • Save lifuzu/7921682 to your computer and use it in GitHub Desktop.
Save lifuzu/7921682 to your computer and use it in GitHub Desktop.
Build phases gradle test
println 'This is executed during the configuration phase.'
task configurated {
println 'This is also executed during the configuration phase.'
}
task test << {
println 'This is executed during the execution phase.'
}
$ ./gradlew test
This is executed during the initialization phase.
This is executed during the configuration phase.
This is also executed during the configuration phase.
:test
This is executed during the execution phase.
BUILD SUCCESSFUL
Total time: 4.951 secs
println 'This is executed during the initialization phase.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment