ProcessResources stays UP-TO-DATE even though the files to process have changed #24698
Labels
a:bug
has:reproducer
Indicates the issue has a confirmed reproducer
in:resource-handler
resources files
Expected Behavior
After repro, tests fail because the content of the file changed due to it being processed now.
Current Behavior
After repro, test pass, same as in step 2, even though the contents of
b.txt
on the classpath should've changed, which means the expectation in the test is wrong and should fail.gradlew cleanProcessResources test
makes it fail correctly, but as we know "if you need to clean something, there's a bug in the build".Context (optional)
Note: this looks eerily similar to #861, but it's a different issue, in this issue the files to process changes, not the contents of the properties.
Steps to Reproduce
gradlew test
- passesbuild.gradle.kts
: uncomment the line"**/b.txt"
gradlew test
- observe pass/failGradle version
6.5.1 (tried), 7.6.1 (tried), 8.0.2 (in repro)
Build scan URL (optional)
No response
Your Environment (optional)
No response
The text was updated successfully, but these errors were encountered: