“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