Search code examples
javaspring-bootgradledependency-managementgradle-kotlin-dsl

Spring boot application: how to trace exact starter which dependency particular jar came from?


I've a legacy Spring boot application with many dependencies ( standard spring's like web and custom users as well) each dependency artifact has it's own dependencies list and so on. At the top of all of this I see something like:

import org.apache.commons.bla.bla.*

I wanna trace which particular dependency it came from? I see the

apache.commons.

jar in the project classpath tree ( I use IDEA) but it only shows the jar is here, but not where it came from.

Are there any ways to trace the chain of the dependencies or at least a bottom dependency where it came from?


Solution

  • gradle dependencies
    

    is the more or less acceptable answer. Just expose the whole dependency tree and then use search to find a possible dependency which might have similar name to jar file and then see the chain of dependency. If there are more straightforward way I'll appreciate it and remark as the answer, thanks