I'm writing a custom Gradle task that needs to iterate all the runtime dependencies (including all the transitive ones). I need the group, the name and the version of each dependency along with the path to the JAR.
The Gradle API does seem to have a ResolvedDependecy but I'm rather lost as to how to get them. https://docs.gradle.org/current/javadoc/org/gradle/api/artifacts/ResolvedDependency.html
There also seems to be rather tricky terminology relating to artifacts, modules, and dependencies https://docs.gradle.org/current/userguide/dependency_management_terminology.html which leaves me rather lost as to how to traverse it? My assumption is that I need to get the runtime configuration using getProject().getConfigurations().getByName("rutime").