I’m using a plugin to generate a file in build\resources\main directory. But I have a problem when running the plugin with Gradle 5.1.x and 5.2.x (but not on other Gradle versions, older and newer)
For some reason, on these gradle versions, :processResources task (specifically CleanupStaleOutputsExecuter) will always delete build\resources\main directory and my generated file. It will show some message like
Deleting stale output file: build\resources\main
Does anyone know the reason for this strange behavior for these specific Gradle versions?
Thank you in advance!