Unable to figure out how a transitive dependency of a particular version is ending up in my jar?
In my dependency section, I list guava 26.0-jre
and I have jar task in my build.gradle so when I do gradle clean build
and untar the jar and look at the guava version I see it is 19.0
instead of 26.0-jre
I did the following under myproject
gradle dependencies | grep guava
gradle dependencyInsight --configuration compile --dependency guava
none of them show 19.0 anywhere I only see 26.0-jre
from these commands
but when I untar the jar and go to META_INF/maven. I can see the version of com.google.guava in pom.properties as 19.0 and because of this, I am getting NoSuchMethodError
Exception at runtime.
How guava 19.0
ending up in my jar I have no idea. any thoughts?