How to get all dependencies for a given java class from gradle

214 views Asked by At

I currently have to check several java classes if they contain some specific libraries. I am looking for the direct dependencies and transitive dependencies of the class.

Can I configure gradle to do that? I have seen, that gradle can generate me a dependency tree for the whole project and module, but unfortunately not for a specific java-class

Thanks for your help!

1

There are 1 answers

0
slashms On
 task copyDoc(type: Copy) {
     from(project.configurations.getByName("runtimeClasspath"));
     into '....'
 }