I am trying to get all local dependencies of a pro...
# multiplatform
j
I am trying to get all local dependencies of a project via:
Copy code
this.configurations.named("commonMainImplementation").get().incoming.resolutionResult.allDependencies.mapNotNull {
     (it.requested as? ProjectComponentSelector)?.projectPath
}
But I get
Copy code
Resolving dependency configuration 'commonMainImplementation' is not allowed as it is defined as 'canBeResolved=false'.
If I try to set it as resolvable, it crashes
Copy code
Cannot change role of dependency configuration after it has been resolved.