Cannot refer to 'eclipse' task by its simple name

“poor” documentation. Section: “6.13. Configure by DAG”

the example is:

gradle.taskGraph.whenReady {taskGraph ->

if (taskGraph.hasTask(release)) {

version = ‘1.0’

} else {

version = ‘1.0-SNAPSHOT’

} }

tasks “should” be: prefixed with “tasks.” since tasks added by pugins are not accessible with just name. Gives this error: * What went wrong: groovy.lang.MissingMethodException: No signature of method: org.gradle.execution.DefaultTaskGraphExecuter.hasTask() is applicable for argument types: (org.gradle.plugins.ide.eclipse.model.EclipseModel_Decorated) values: [org.gradle.plugins.ide.eclipse.model.EclipseModel_Decorated@74b65a68]

spent only 15 minutes before relizing what i did wrong. So far from critical :slight_smile:

This is a peculiarity of the ‘eclipse’ task, not a general problem. The ‘eclipse’ task, which isn’t generally meant to be used directly, is shadowed by an equally-named model object, hence it can only be referred to with ‘tasks.eclipse’.

Well what do you know.

Thanks for an absolutely AWSOME build tool btw!