Running the first hello world example in the online installation tutorial (http://www.gradle.org/docs/current/userguide/tutorial_using_tasks.html) the build fails with “Could not find method dolast() for arguments [build_3j5djcu6u9fre9vqmqpvdsbt4c$_run_closure1_closure2@3219ab8d] on root project”
Any clues would be grateful!
thanks in advance,
PO
task hello {
dolast{
println "Hello World!"
}
}
$ gradle -v ------------------------------------------------------------ Gradle 1.10 ------------------------------------------------------------
Build time:
2013-12-17 09:28:15 UTC Build number: none Revision:
36ced393628875ff15575fa03d16c1349ffe8bb6
Groovy:
1.8.6 Ant:
Apache Ant™ version 1.9.2 compiled on July 8 2013 Ivy:
2.2.0 JVM:
1.6.0_65 (Apple Inc. 20.65-b04-462) OS:
Mac OS X 10.9.1 x86_64