Started reading the latest version of the User Guide from the beginning and
noticed this:
task hello {
doFirst {
println 'Hello world!'
}
}task hello << {
println 'Hello world!'
}Unless I'm mistaken, the second form is actually equivalent to:
task hello {
doLast {
println 'Hello world!'
}
}
or even
task hello
hello.doLast {
println 'Hello world!'
}
The "<<" form is confusing enough. Having the first hello world example state
that it's equivalent to doFirst will only lead to later confusion once a user
learns about doFirst and doLast.
-Spencer