Is there a way to list the value sources or properties or whatever that caused the configuration cache to become invalid? Just a string representation of each thing that invalidated that cache would be great.
I’d like to add this to my usual output. If I run a gradle task but gradle determines that the cache is invalid, configuration will occurs. Whenever configuration occurs because of the cache being invalid, I’d like to see something like the following in my console:
configuration cache was invalid because of the following:
- ValueSource x changed
- property y changed
Actually, I’m not aware that you even could disable it.
Maybe you expect it at the end of the output, but it is printed in the beginning of the build where it is determined that the CC cannot be reused.
I would like to keep my org.gradle.logging.level=warn but still be able to somehow have access to this information, ideally programatically. If it can’t be programatic, at least if I can selectively include it in my console when my log level is warn without including the other things. I am finding that it doesn’t show in lifecycle either. It requires info.