given a project path `String`, how can I lookup a ...
# community-support
z
given a project path
String
, how can I lookup a
ProjectDependency
(from an
Extension
)? I previously used
ProjectFinder
, but that no longer works in
9.x
v
Probably by injecting a
DependencyFactory
z
ahh, I need to figure out how to create a
Path
from this
String
v
dependencyFactory.create(project.project(theString))
?
z
I don't have a reference to the project from within the extension unfortunately
v
Inject it
z
didn't realize you can inject a
Project
into an extension lol, my bad
super easy solution haha
v
Don't worry, it is neither obvious, nor documented afair. If I need something somewhere, I just try whether I can inject it. Most times it just works, some times I need the enclosing object. 🙂
😂 1
❤️ 1