Gradle: UP-TO-DATE or not?

Running a gradle task with caching will only run a task if the inputs and outputs are either not defined or outdate. To get some debugging information about why a task is not UP-TO-DATE run gradle with –info

gradle taskA –info