Tricky groovy

task groovy << {} def foo="bar" println "$foo + foo = ${foo+"foo"}" [/code]

[vagrant@localhost ud867]$ gradle groovy
bar + foo = barfoo
:groovy

BUILD SUCCESSFUL

Total time: 17.521 secs

gradle task

project.task("myTask1")
[vagrant@localhost ud867]$ gradle task
:tasks

------------------------------------------------------------
All tasks runnable from root project
------------------------------------------------------------

Build Setup tasks
-----------------
init - Initializes a new Gradle build. [incubating]
wrapper - Generates Gradle wrapper files. [incubating]

Help tasks
----------
dependencies - Displays all dependencies declared in root project 'ud867'.
dependencyInsight - Displays the insight into a specific dependency in root project 'ud867'.
help - Displays a help message
projects - Displays the sub-projects of root project 'ud867'.
properties - Displays the properties of root project 'ud867'.
tasks - Displays the tasks runnable from root project 'ud867'.

Other tasks
-----------
myTask1

To see all tasks and more detail, run with --all.

BUILD SUCCESSFUL

Total time: 13.701 secs