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
6
votes
2 answers

How to solve transitive dependencies version conflicts (scala/sbt)

I have a project with several utility classes. Let's name it Utils. I have a proj1 which depends on Utils. And another proj2 that depends on proj1 and Utils. The problem is if both proj1 and proj2 depend on different Utils version this will lead to…
pedrorijo91
  • 7,635
  • 9
  • 44
  • 82
5
votes
1 answer

What does this "all*.exclude" means in Gradle transitive dependency?

I wonder what does "all*.exclude" mean in Gradle transitive dependency ? configurations { compile.exclude group: 'org.hamcrest', module: 'hamcrest-core' all*.exclude group: 'org.mockito', module: 'mockito-all' } Is…
wei ye
  • 73
  • 1
  • 7
5
votes
3 answers

What is the maven equivalent of implementation dependencies in gradle?

I recently learned that gradle has api/implementation "scopes" for dependencies, and I was trying to figure out if there's a maven equivalent of the implementation in gradle. None of the maven dependency scopes seem exactly right for this - provided…
user7876637
  • 124
  • 4
  • 11
5
votes
1 answer

gradle force version of transitive dependency not working. No exclude, override or force seems to apply

I have a conflict with a transitive dependency. Overriding, excluding or forcing does not help. What else can I do to get the right version of the library into the jar? The full code dan be. found…
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292
5
votes
1 answer

How to export dependencies in android library

Since version 3.0.0, the Android Gradle Plugin allows you to export a module's dependencies to other modules. So in my android library module I should be able to declare a dependency using api and access THAT dependency as…
5
votes
1 answer

Definitive answer on slf4j and logback-classic transitive dependency

I have really struggled with the loading of logback-classic as a transitive dependency problem. I follow the advice found here on stackoverflow, but, it keeps re-occurring. I use maven exclusions to try to try to control it, it does not appear at…
oldDave
  • 395
  • 6
  • 25
5
votes
1 answer

Maven eclipse plugin, exclude transitive dependencies

There are several questions about maven and transitive dependency exclusion. However, I don't get it working. I have some dependencies in my pom, that repackaged some libraries, in order to reduce the size of the pom. So far this is successful. But…
Angelo.Hannes
  • 1,729
  • 1
  • 18
  • 46
5
votes
2 answers

maven - transitive dependencies

I am trying to follow best practices when defining data in pom.xml, so I started to look into the Spring source code, and I have seen:
Roxana
  • 1,569
  • 3
  • 24
  • 41
5
votes
2 answers

Freezing transitive dependencies on maven release to get build fully reproducible

A problem that relates to basic maven concepts: Once released I would like to have a guarantee that the project build is fully reproducible. So all project and plugin dependencies, including transitive one, should be always resolved the same way.…
4
votes
2 answers

Automatically taking the newest transitive dependency in maven

Consider a very common situation when a project depends on 2 libraries, each transitively bringing a 3rd library of different versions: Project A: Library B: Library D: version 1 Library C: Library D: version 2 I can use…
Alexander
  • 2,761
  • 1
  • 28
  • 33
4
votes
1 answer

How to list only direct dependencies in mvn dependency tree command?

mvn org.apache.maven.plugins:maven-dependency-plugin:3.0.2:tree -DoutputFile=/tmp/dependencies.txt -DoutputType=dot -DappendOutput=true I'm using the above command to get a list of dependencies i.e the direct and transitive dependencies. I want an…
4
votes
1 answer

transitive dependencies in Eclipse Plugin-Project with Java 9

It seems, that in my Eclipse Oxygen 3 transitive dependencies are not resolved in Plugin-Projects. Consider the following Project with A depending solely on B, and B depending on C: While running A in JDK 1.8 turns out fine (as expected), in JDK 9…
4
votes
1 answer

Detect Python transitive dependency issues at install time?

I recently learned that pip does not resolve transitive dependencies in any sane fashion. This means after installing a package, some of its dependencies' dependencies may not actually be satisfied. Is there a way to programmatically check that all…
augurar
  • 12,081
  • 6
  • 50
  • 65
4
votes
1 answer

How can I use SBT to help my library get around transitive dependency conflicts

Let's say I'm writing a Scala library L that depends on some dependency D and is consumed by a program P and another program Q. P depends on version 3.2 of D directly while Q depends on version 3.3 directly. Between those two versions D's API was…
4
votes
1 answer

maven same transitive dependency but different version

I am running into a problem where I have the following 2 dependencies: org.apache.felix » org.apache.felix.utils » 1.6.0 and com.github.rotty3000 » phidias » 0.3.2 they both have transitive dependency on org.osgi.core, felix depends on version 4.1.0…
tom
  • 445
  • 4
  • 20
1 2
3
15 16