Is there some recipe somewhere I forgot how to mak...
# plugin-development
v
Is there some recipe somewhere I forgot how to make a task / extension where the consumer can configure a copy-spec that is then accounted as input files for the task and can be used with
with
in the task implemenation?
y
Like in what the asciidoctor plugin does with secondary input files and resource files?
v
Seems so, but optimally without using Gradle internals 🙂
y
I looked through a couple of implementations. Even in Grolifant we still do
((CopySpecInternal) copySpec).buildRootResolver().allSource
I looked at what I did for Git Publish plugin, but due to the ``@UntrackedTask(because = 'State is tracked in Git')` annotation, it does not handle the CopySpec as an input.
v
Hm, sounds like we need a feature request. As the use-case fits good enough I just subclassed
Copy
for now. Thanks though
y