Here’s a scenario:
- Create a new project with a build.gradle that only applies the java plugin
- create a file: src/main/resources/foo.txt
- build, check the jar contains foo.txt
- Remove the foo.txt file
- Build, notice the file is still in the jar file.
When running build in step #5 with --info it’ll say:
:processResources
Skipping task ‘:processResources’ as it has no source files.
The task should know it had inputs on the previous run and therefore should run again.
Tested and verified same behavior on Gradle 2.2.1, 2.5 and 2.7