This message was deleted.
# community-support
s
This message was deleted.
a
I believe if you don't use ValueSource, then your task might not be invoked when loaded from configuration cache. With ValueSource Gradle will try invoke
isIntelliJServerActive
always (as you want), but without it, it might just cache the result. Although onlyIf might not work with cc anyway (see https://github.com/gradle/gradle/pull/24556), so maybe best option is, to move the check to task execution.
Now, I am not 100% that onlyIf is not cc compatible, but I would definitely test if
isIntelliJServerActive
is called always and not just cached with cc.
a
thanks @Anze Sodja, that helps. I’ve refactored it to use a ValueSource and that seems to be working. I didn’t do any testing on whether CC would cache it, because it’s a hassle and this is only a tiny util.
👍 1