What is the best way to get the DAG of transitive dependencies?

(john.carrino) #1

I noticed that a Configuration can produce a file set by just calling files(), however I would like a DAG of all the resolved files. My goal is to pull down all the jars needed and modify each of them to include it’s dependent jars.

Basically imagine that I am trying to add Import-Bundle config to each of these jars (not really what I’m doing we have our own classloader plugin framework, but close enough to get my point across). I am using ivy for my dependency management and each jar correctly declares it’s dependencies. However the Import-Bundle wasn’t added when they published so I want to fix it up in gradle at build time for my project.

(john.carrino) #2

Nevermind. I didn’t look at Configuration hard enough and it can easily be found by looking at getResolvedConfiguration().