gradle
8.4

# notCompatibleWithConfigurationCache

abstract fun notCompatibleWithConfigurationCache(reason: String)(source)

Specifies that this task is not compatible with the configuration cache.

Configuration cache problems found in the task will be reported but won't cause the build to fail.

The presence of incompatible tasks in the task graph will cause the configuration state to be discarded at the end of the build unless the global `configuration-cache-problems` option is set to `warn`, in which case the configuration state would still be cached in a best-effort manner as usual for the option.

IMPORTANT: This setting doesn't affect how Gradle treats problems found in other tasks also present in the task graph and those could still cause the build to fail.