Questions tagged [transitive-dependency]

A transitive dependency refers to a code path or datasource which has an indirect dependency, such as an object, function, record, or file.

A transitive dependency requires implicit code or data to exist as a prerequisite to access itself.

References

238 questions
0
votes
1 answer

Gradle cannot find prefix version transitive dependency which does not exist

I have a multi-module gradle project where in a module I add dependencies in compile configuration on runtime. Those dependencies fetch a transitive dependency with a version prefix that does not exist. So case is like this compile…
0
votes
1 answer

How to resolve maven dependency and get all the transitive dependencies using Maven Artifact Resolver?

I have a maven project and I am trying to get all the transitive dependencies of direct dependency using Artifact resolver APIs.How to attain this programmatically? The same functionality I am able to attain using aether-1.1.0.But we need to migrate…
0
votes
1 answer

Maven exclude dependency of transitive dependency

I have this dependency tree: A->B->C->D. A is the main project. I would like to know if it’s possible to exclude only D from A without needing to add explicitly C to A? Thanks
0
votes
2 answers

How can I exclude a dependency transitively?

I have all following dependency:tree. ... [INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.1.5.RELEASE:test [INFO] | +- org.springframework.boot:spring-boot-test:jar:2.1.5.RELEASE:test [INFO] | +-…
Jin Kwon
  • 20,295
  • 14
  • 115
  • 184
0
votes
1 answer

Two versions of spring in the same application

What I'm trying to do is very similar to this, I just wanted to know if the answer is up to date since this problem was answered 4 years ago. So, I have 2 maven project let's say A and B, project A depends on Spring 3 project B depends on Spring 5,…
Toufik ID
  • 50
  • 6
0
votes
1 answer

How avoid manual reimport of transitive dependency from self conflicting module

A module has a bad dependency which depends on multiple versions of the same library. This library is not used by any other dependency. If I just exclude the library to resolve version conflict then I need import the library obviously in every child…
Daniil Iaitskov
  • 5,525
  • 8
  • 39
  • 49
0
votes
2 answers

excluding module/transitive dependencies from Gradle Build

I am currently attempting to build a gradle grails 3 project, where it is using Spring-context-support as a transitive dependency under some Spring dependency at compile time as declared in my build file. My application does depend on the group and…
William Tolliver
  • 305
  • 1
  • 2
  • 16
0
votes
1 answer

gradle transitive dependency conflict

I've a typical transitive dependency problem for which I couldn't find a resolution. My project uses spark and hadoop-tools dependencies. spark uses hadoop-mapreduce-client-core and hadoop-tools uses hadoop-core hadoop-core and…
s.r
  • 2,507
  • 3
  • 22
  • 32
0
votes
1 answer

Use different versions of a library in parent and child projects

I have a project child with build.gradle as follows. dependencies{ compile 'com.google.guava:guava:17' } I've another project called parent with build.gradle as follows. dependencies{ compile project(':child') compile…
0
votes
2 answers

Transitive References In Java

tldr; What makes it necessary to include a transitive reference into the build path? Explanation I try to analyse some Java sourcecode that is compiled with the eclipse workspace. There are loads of projects in the workspace. I try to detect unused…
KFleischer
  • 942
  • 2
  • 11
  • 33
0
votes
2 answers

finding transitive relation between two columns in pandas

I have a pandas data frame with 2 columns - user1 and user2 something like this Now, I want to do a transitive relation such that if A is related to B and B is to C and C is to D, then I want the output as a list like "A-B-C-D" in one group and…
0
votes
1 answer

Transitive dependency causing build failure

I am creating building a jar which will also include its dependencies. I am using maven shade plugin for this. But getting Caused by: java.util.zip.ZipException: invalid LOC header error while building. I tried excluding the transitive dependency as…
Vikas
  • 6,868
  • 4
  • 27
  • 41
0
votes
1 answer

Why can't transitive dependency on Uber jar be achieved?

According to the concept of transitive dependency, if a project, say it A has dependency on X jar and is included in A's pom.xml. Now my second project, say it B has dependency on both project A and X jar. So now in my B's pom.xml I'll add only…
0
votes
0 answers

when it is possible that if you interchange the lines of adding a and b, then hashSet.size () == 2 instead of 3:

When it is possible that if you interchange the lines of adding a and b, then hashSet.size () == 2 instead of 3: a = ; b = ; c = ; Set hashSet = new ...; hashSet.add (a); hashSet.add (b); hashSet.add (c);
0
votes
1 answer

Prevent transitive dependencies from SBT subproject

I have an SBT (v0.13) project with multiple subprojects with the following dependencies. root -> projectA -> projectB -> projectC. Like so: lazy val projectA = (project in file("projectA")).enablePlugins(PlayScala).dependsOn(projectB) lazy val…
Ram
  • 865
  • 1
  • 8
  • 20