How do you do inputs on a custom task that involves 1K+ files?

I am creating a gradle script which generates stubs/skeletons from a huge wsdl. The output is thousands of files.

I was trying to get the incremental build stuff configured. There are far too many files to list individually with inputs.file

Is there a way to do this efficiently? I can’t seem to find a lot of info on this online.

Never mind.

I have this backwards. The input is the single wsdl. The output is the directory where it puts the many files.

I’m confused with your question. You’re saying that your input is “a huge wsdl”. So there is just one file as input: the huge wsdl. If your question is about outputs, then simply make sure the task generates all its outputs in a dedicated single directory under build, and use that directory as output: