Tasks in the Gradle plugin are named with the form cf-task-name. This makes it difficult to use the task names in Groovy expressions since the - characters are taken as part of an expression (i.e. a "minus" sign) instead of part of a variable name.
It is more typical to use the form cfTaskName in Gradle tasks. Please comment on this issue if you have concerns about this backward-incompatible change.