This message was deleted.
# community-support
s
This message was deleted.
v
Call
notCompatibleWithConfigurationCache()
on any of the tasks that is going to be executed.
🙌 1
t
Problem with
notCompatibleWithConfigurationCache()
is that is it not final, so when I want to put it to the constructor of the task, there is warning, that calling not final method from constructor is not a good idea.
v
Well, better fix your task to be CC compatible. 😄
t
Yes, but some tasks are running just on CI (Teamcity) where there is no cache anyway), so it doesn't make sense to invest time to it. Or are called so rare, that doesn't make sense to do it in the first phase.
v
👌
Then either ignore the warning, or override the method and make it final if possible, or call it from outside, for example with a
task.withType<...>().configureEach { ... }
🆗 1