Ask Your Question
0

How to locate a transitive dependency that has been shaded in Gradle?

asked 2023-05-28 07:35:32 +0000

woof gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-05-28 08:01:02 +0000

huitzilopochtli gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-28 07:35:32 +0000

Seen: 17 times

Last updated: May 28 '23