How do I track down a dependency?

I have a project, NineML within which there’s a subproject (coffeefilter) and when I ask about the dependencies for that project, I see:

$ ./gradlew coffeefilter:dependencies
...
apiDependenciesMetadata
\--- org.jetbrains.kotlin:kotlin-stdlib:2.0.21
     \--- org.jetbrains:annotations:13.0
...

I have other Java projects with Kotlin build scripts and they don’t have apiDependenciesMetadata.

But I can’t figure out why this one does, or why the others don’t. Is there some other introspection command I could use?

(I’m asking because those dependencies get added to the Maven POM so they become dependencies for other projects. I’d like to reduce the dependency footprint.)

From the top of my head, this configuration is added by the Kotlin Gradle Plugin, so I’d guess you apply the KGP in this project but not others.
But dependencies in this configuration should afair only be derived from other configurations and if it would only be there not influence the POM.

Thanks. I wonder if I was confused and thought I needed that for something. I’ll try removing it and see what happens! :slight_smile:

Will probably help, because KGP also adds that stdlib dependency for you if you didn’t add it yourself. :slight_smile: