I have a task which launches external command-line script for generating files (custom asciidoc, pandoc, latex2pdf solution). I discovered that there is incubating feature continuous build (https://docs.gradle.org/current/userguide/continuous_build.html), which seams like a tool for running this script if my input files change (editing & saving).
Looking through documentation, I understood that if I added those files into main or test resources, it should work out of the box. The problem is that I’m not using any plugins, only self-defined tasks.
There’s a problem in that script: The << means “do this at execution time”. But you want to configure inputs at configuration time, so leave out the <<.
I guess you just wrote it accidentally in your post, because your build would not work properly if it contained that.
We will probably remove << at some point as it’s confusing. It’s shorthand for ´doLast {}´