This message was deleted.
# configuration-cache
s
This message was deleted.
m
The javadocs for
ResolvableDependencies#getResolutionResult
say: "This will resolve the dependency graph but will not resolve or download the files."
fair enough, that's what I recall
however, in order to get a configuration cache compatible input, I cannot use a
Configuration
as an input, it triggers serialization errors
so I have to use
config.getIncoming().getResolutionResult()
, but this, if the javadocs are correct, will trigger resolution too early
the example at https://github.com/adammurdoch/dependency-graph-as-task-inputs/blob/main/plugins/src/main/java/ReportDependencyGraphTask.java#L20 also uses a
ResolvedComponentResult
as an input, which assumes that the resolution has happened already.
What am I missing?
(it seems, however, that I can use
ResolvableDependencies
as a config cache, lazy-compatible input)
p
config.incoming.resolutionResult.rootComponent
is the lazy provider one that is intended to be wired to task inputs and such
m
so the javadocs are confusing, because they imply that
config.incoming.resolutionResult
triggers resolution
is it fine to use
incoming
?
p
This is indeed wrong. calling
config.incoming.resolutionResult
doesn´t trigger resolution,
config.incoming.resolutionResult.root
or other functions on
ResolutionResult
do, except for
config.incoming.resolutionResult.rootComponent
👍 2
Can you point to the confusing part of javadoc?
m
sure:
p
👍
Care to create an issue?
m
which one do you fix in exchange?
😂 1
p
Heh 🙂 I can promise to do what I can to get your system property provider one merged eventually once I figure out the perf problem 😉
m
fair enough!