I try to find way to configure a copy task in my plugin so that it fails during the execution phase when there are no inputs available.
A few stackoverflow posts mentioned using getInputs().getSourceFiles().stopExecutionIfEmpty(), but I cannot call that while setting the task up in my Plugin.apply() method because this is called during the configuration phase.
doFirst / doLast don’t seem to be executed because of the NO-SOURCE status…