Would it be happy with just the formal notation of the dependency? Why does it have to attempt to download the actual dependency?
computeMyDependency() figures out which version of an artifact to get from the artifact repository, and bails if the required artifact is not present. It wouldn’t bail when building in our CI system, because it guarantees that the artifact is present, but for developer it can happen.
Hence my current workaround to resolve computeMyDependency to files('.') when it isn’t present… which is an awful hack IMHO.
Maybe it would make more sense to only consider dependencies listed in DependsOn, or only consider task and project dependencies?
As it currently is, you could be downloading gigabytes of data just to throw it out as you realize it is not useful to display task dependencies.
So I guess for the meantime, I’d request a feature for defining a “null” dependency, which doesn’t affect operations like gradle tasks, but will cause copy tasks or similar operations which do require an input to fail.