I hope this is an easy one. I have a custom task (written in Groovy) with options for the primary input and primary output files.
task myTask(type: MyCustomTask) {
input("primary", "somefile")
output("result", "someotherfile)
}
That’s fine, but of course I want Gradle to know about this dependency, so what I actually end up writing is
task myTask(type: MyCustomTask) {
inputs.file "somefile"
outputs.file "someotherfile"
input("primary", "somefile")
output("result", "someotherfile)
}
Which is annoying and redundant. Is there any way for the implementation of input() and output() to put their arguments into inputs and outputs automatically?