We bumped into a problem when we used incremental build while some resources were deleted from src/main/resources. After a successful incremental build the resources are still under build/resources/main. It happens with Gradle 2.7 also.
It is very easy to reproduce. Just add a file under src/main/resources, do a clean build, delete the file, do an incremental build. And the file is still under build/resources/main.
Just a side note: if I delete a “.java” file from src/main/java and do an incremental build then the corresponding “.class” file is deleted from the build/classes folder. I expected similar behavior from processResources task.