is there a way to use a `Configuration` object in ...
# plugin-development
j
is there a way to use a
Configuration
object in a task that is configuration cache safe? I don't want to treat it like files because I want to look at the declared dependencies and resolved dependency tree model
p
configuration.incoming.resolutionResult.rootComponent
is CC safe and lazily. Or use artifactView
til 1
j
ok thanks
p
But you mostly want to use
rootComponent.dependenciesForVariant
j
looks like I can also use
ListProperty<DependencyResult>
and map to that using configuration.incomping.resolutionResult.allDependencies in the plugin code as well
p
Yeah, but then you loose variants
j
ah good point. in this case, I don't think I need variants, but that is good to know
a