I have a gradle plugin that needs to find the tran...
# plugin-development
k
I have a gradle plugin that needs to find the transitive project dependencies for a project. As of Gradle 8, we do this. However, I was upgrading Gradle and got a deprecation warning we can't access the
dependencyProject
property anymore. What is the Gradle 9 way to do this?
v
I guess you should use
configuration.incoming.resolutionResult.rootComponent
as input and then there iterate through the tree, searching for the project component selectors and getting the project path from there or something like that.
k
This looks great! Thank you!
👌 1
To close the loop, used it with minimal changes: https://github.com/Faire/build-targets-gradle-plugin/pull/76 🙂
👌 1