Let say I have a task that performs heavy/long running operation and as result produces
org.gradle.api.artifacts.Dependency
.
Is there a way in Gradle to wire a task as a dependency to the configuration resolution process, so that task executed first and then dependency resolution process continues?