$ gradle first second third
:first
Running first
:second
Running second
:third
Runing thirdBUILD SUCCESSFUL
Total time : 4.302 secs
Last active
December 25, 2016 18:33
-
-
Save HIPERCUBE/1b171a8b76ac0ba1ff09ca1543a1eef3 to your computer and use it in GitHub Desktop.
Gradle Left Shift Operation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Left Shift Operation | |
task hello << { | |
println 'Hello world' | |
} | |
// Left Shift Operation Test | |
task first { | |
doFirst { | |
println 'Running first' | |
} | |
} | |
task second { | |
doLast { Task task -> | |
println "Running ${task.name}" | |
} | |
} | |
task third << { taskObject -> | |
println 'Running ' + taskObject.name | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment