
// START SNIPPET add-action
task hello(type: GreetingTask)

// START SNIPPET define-task
class GreetingTask extends DefaultTask {
// END SNIPPET define-task
    @TaskAction
    def greet() {
        println 'hello from GreetingTask'
    }
// START SNIPPET define-task
}
// END SNIPPET define-task
// END SNIPPET add-action
