Ask Your Question

Revision history [back]

To locate a transitive dependency that has been shaded in Gradle, you can follow these steps:

  1. Check the dependencies section in your build.gradle file to see if any shading plugins are being used. The most common ones are Shadow and Jar Jar Links.

  2. Check the shadow or jar Jar Links configuration in your build.gradle file to see which dependencies are being shaded.

  3. Run the "gradle dependencies" command to see a list of all your project's dependencies, including transitive dependencies. Look for any dependencies that are not being shaded but are being pulled in by shaded dependencies.

  4. Use the "gradle dependencyInsight --dependency <dependency-name>" command to see the full dependency tree of a particular dependency, along with its sources and conflicts. This can help you identify whether a transitive dependency is being shaded or not.

  5. If you still can't find the transitive dependency, you can try removing the shading plugins from your build.gradle file and rebuilding your project. This will give you a list of all your project's dependencies without any shading, and you can manually search for the missing transitive dependency.