To locate a transitive dependency that has been shaded in Gradle, you can follow these steps:
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.
Check the shadow or jar Jar Links configuration in your build.gradle file to see which dependencies are being shaded.
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.
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.
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.
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
Asked: 2023-05-28 07:35:32 +0000
Seen: 17 times
Last updated: May 28 '23