User Guide: tasks "buildNeeded" task depends on

(davidmichaelkarr) #1

In Table 23.3, “Java plugin - lifecycle tasks” it describes the “buildNeeded” task, with the following text in the “Depends On” cell: > build and build tasks in all project lib dependencies of the testRuntime configuration.

So in listing the tasks it depends on, it lists “build” and “build”. That can’t be right.

It does basically the same thing in the “Depends On” field for the “buildDependents” task.

What might the correct list of tasks be?

(Luke Daley) #2

What happens here is that buildNeeded and buildDependents both depend on build, all in the same project.

Additionally, buildNeeded and buildDependents also depend on the task with the same name in the related projects.

So, for buildNeeded it probably wants to say ‘build and buildNeeded’.