This message was deleted.
# community-support
s
This message was deleted.
n
Why are you trying to resolve this behaviour in gradle? Shouldn't it be the worker itself that switches implementation based on the resource inputs?
v
The worker could for example use a detached configuration to get the runtime classpath it needs if the build script does not need to control those dependencies. Even if you would do it in
withDependencies
which is executed right before dependency resolution for example to add last-minute dependencies based on other dependencies or whatever, or if you would use
addLater
, latest when you enable configuration cache it would probably still be done "at configuration time" I guess. But you could also try that.
Btw. is there a reason you do
workerResources.incoming.artifacts.artifactFiles
? For the
inputs.files
call you should be able to just give the configuration, and same for the
asPath
and
classpath
calls. And just if you are not aware,
serviceOf
is internal API, not public API. 🙂
a
Yeah, probably it should be done in the worker (Dokka), but I'm not sure if it's possible (I've skipped over some details that might interfere), and also I would like to fix it for previous versions.