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
1280
votes
12 answers

What's the difference between implementation, api and compile in Gradle?

After updating to Android Studio 3.0 and creating a new project, I noticed that in build.gradle there is a new way to add new dependencies instead of compile there is implementation and instead of testCompile there is testImplementation. Example: …
77
votes
3 answers

What is a transitive Maven dependency?

This question is about to clarify what exactly a transitive dependency is and how it works at very high level in Maven. My definition: in a dependency tree like A --> B --> C, C is a transitive dependency for A. Assume B has scope compile within…
Johan
  • 3,561
  • 9
  • 29
  • 45
53
votes
5 answers

Gradle, How To Disable All Transitive Dependencies

Many of my jars have conflicting transitive dependencies (multiple spring versions). I would like to avoid inherited version conflicts by managing all of my dependencies explicitly, is it possible to disable all transitive dependencies in Gradle? I…
Rylander
  • 19,449
  • 25
  • 93
  • 144
34
votes
4 answers

What is wrong with a transitive dependency?

I have some transitive dependencies in my database design. I have been told by my superiors that these can cause bugs. I am finding it difficult to find resources that will tell me how having these dependencies will cause bugs. What kind of problems…
Simon Kiely
  • 5,880
  • 28
  • 94
  • 180
22
votes
1 answer

Maven - transitive dependencies with different versions

Let's assume my application needs foo.jar and bar.jar foo.jar needs version 1.0 of c.jar bar.jar needs version 2.0 of c.jar How does Maven resolve this conflict? Which version of c.jar will be used?
Frizz
  • 2,524
  • 6
  • 31
  • 45
19
votes
2 answers

How does Maven resolve version conflicts of transitive dependencies ? nearest-wins strategy

I just finally got used to not having any Used undeclared or Unused declared dependencies in my projects. Although it is very hard to track Unused declared runtime/test dependencies that are listed in dependency:analyze... One just must write…
lisak
  • 21,611
  • 40
  • 152
  • 243
19
votes
3 answers

Transitive references in .Net Core 1.1

While developing a sample web app in .NET Core 1.1 and Visual Studio 2017 RC, I realized the following: As you can see: ClassLibrary3 has a reference to ClassLibrary2, and ClassLibrary2 has a reference to ClassLibrary1 I wrote a simple method…
Franco
  • 479
  • 3
  • 11
18
votes
2 answers

How to ignore a specific transitive dependency from all dependencies in Gradle

How can I ignore a specific transitive dependency in Gradle? For example, many libraries (such as Spring and ...) depend on commons-logging, I want to replace commons-logging with SLF4J (and its jcl-over-slf4j bridge). Is it any way in my gradle…
Amir Pashazadeh
  • 7,170
  • 3
  • 39
  • 69
16
votes
1 answer

setup.py with dependecies installed by conda (not pip)

I am working on an existing Python 3 code-base that provides a setup.py so the code is installed as a Python library. I am trying to get this internal library installed with its own dependencies (the usual data science ones e.g. pandas, pyodbc,…
TPPZ
  • 4,447
  • 10
  • 61
  • 106
14
votes
2 answers

Transitive effect of dependencyManagement

In Maven you can override the version number of a transitive dependency by an entry in dependencyManagement because dependencyManagement takes precedence over transitive dependency definitions. But what about dependencyManagement definitions in the…
J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
13
votes
3 answers

How to get the information of transitive dependencies in a gradle task?

I want to get information of all dependencies (including transitive ones) in a gradle task. I tried the code: class MyGradlePlugin implements Plugin { void apply(Project project) { project.afterEvaluate { println " Project:"…
Freewind
  • 193,756
  • 157
  • 432
  • 708
12
votes
2 answers

Apache Commons Configuration: ClassNotFoundException: org.apache.commons.beanutils.DynaBean

My POM contained: org.apache.commons commons-configuration2 2.3 Both sample codes from Quick start guide, Reading a…
12
votes
1 answer

Maven - Transitive dependencies are not resolved for artifact deployed on Artifactory

I have two projects - A and B, where A is dependent on B. I package B as jar and deploy it on a maven server (artifactory), and then include that jar as a normal dependency on project A in pom file. jar file of B shows up in the Maven Dependencies…
Anmol Gupta
  • 2,797
  • 9
  • 27
  • 43
10
votes
1 answer

How to interpret/handle this dotnet list package --vulnerable result

I have scanned for vulnerable NuGet packages using dotnet list package --vulnerable --include-transitive. I get the following: Project `MyProject` has the following vulnerable packages [net6.0]: Transitive Package Resolved …
cmeeren
  • 3,890
  • 2
  • 20
  • 50
10
votes
3 answers

More efficiently compute transitive closures of each dependents while incrementally building the directed graph

I need to answer the question: given a node in a dependency graph, group its dependents by their own transitive dependents which would be impacted by a particular start node. In other words, given a node in a dependency graph, find the set of sets…
1
2 3
15 16