checkDirectDependency task

The task registers in the validate phase of the project.