I basically have the same question as here on StackOverflow, but I’m not yet convinced that “This is not possible” is the correct answer. Maybe the feature is just not implemented in Gradle yet, but it would be possible to implement.
Background: Our Travis CI builds for a GitHub project install a bunch of prerequisites which takes significant time. For changes to e.g.
*.md files which are not part of the build, I’d like to skip installing even the prerequisites and not just skip the build itself. As such I’d need a way to ask Gradle if it would need to build anything for a given task. I was experimenting with the
--dry-run option, but this just skips execution without any indication whether the task would be executed without
So, is there currently any to achieve what I want with Gradle, and if not, would it be at least possible to implement, or is it not even possible to implement in Gradle itself (with reasonable effort)?