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

How to turn off transitive dependencies for maven projects?

I have come across the JIRA post that gives a solution as including exclusion tag in each dependency tag of POM. But I have large number of projects and each project has huge number of dependency tags. It's not feasible to include this
A.R.K.S
  • 1,692
  • 5
  • 18
  • 40
10
votes
1 answer

Transitive Dependency causing Conflicting version of same DLL

What is the best practice in the .NET world to manage transitive dependencies that cause version conflict ? In details : Project A Depends on Project B which in turn depends on library C also Project A also depends on Project X which depends on a…
Newtopian
  • 7,543
  • 4
  • 48
  • 71
9
votes
0 answers

.NET Utilize Transitive Dependencies/References

I have a Visual Studio Solution with 3 projects: MyWebSite (A) BusinessModel (B) Persistence (C) Persistence, project C, depends on NHibernate and contains all of the repository interfaces, Hibernate implementations of those repositories, and the…
Jesse Webb
  • 43,135
  • 27
  • 106
  • 143
9
votes
3 answers

Should I rely on transitive dependencies in Maven if they come from other sub-module of my parent?

Suppose we are working on mortgage sub-module, and we are directly using the Google Guava classes in module code, but the dependcy for the guava is defined in other sub-module under the same parent and we have access to Guava classes only by…
Piotr Müller
  • 5,323
  • 5
  • 55
  • 82
9
votes
3 answers

Android Studio Gradle not using transitive dependencies

Having experienced this problem in a separate project, I made a test project to verify the issue. Opening Android Studio 3.0, I created a new basic project. Its main module was called app. I added a library module, called libraryone. In…
9
votes
0 answers

Exclude all transitive dependencies with Apache Maven Shade Plugin

I have used Apache Maven Shade Plugin to create fat jar (the jar which includes all classes from all dependencies). My current project folder structure looks something like this, > Parent Module (packaging pom) > Module 1 (packaging jar) …
9
votes
0 answers

"Transitive" dynamic link in c++

Let's say I have a dynamic lib a.so. Then I'm building b.so against a.so only if a.so is present on the machine. Then I'm building executable c against b.so. I was hoping to forget everything about a.so in c Makefile, but it appears that I need to…
8
votes
1 answer

Trying to build an OSGi bundle in Maven with embedded dependencies. Can't seem to exclude transitive dependencies from BND classpath

Basically, my web service must be deployable as a single OSGi jar bundle. Therefore: The bundle must contain all compile and runtime maven dependencies. It must also contain all non-optional dependencies that depend on those dependencies (i.e., the…
bernerbrau
  • 333
  • 1
  • 3
  • 9
8
votes
1 answer

Force version of transitive dependency (dependency of dependency) with yarn

I am using the package "csv-file-validator": "^1.8.0" which comes with 3 dependencies famulus "2.1.2" lodash "4.17.15" papaparse "^5.2.0" I would like to update/force the version of lodash to be 4.17.20. I found about selective dependency…
Léo Coco
  • 4,022
  • 11
  • 52
  • 97
7
votes
3 answers

Transitively download a Maven artifact to the local repository

I am trying to download a specific artifact (and all of its dependencies) to a machine's local repository. It would seem that using the dependency:get goal would be the best option for this, but despite the documentation it does not seem to actually…
Mike Deck
  • 18,045
  • 16
  • 68
  • 92
7
votes
3 answers

Disable transitive PackageReference dependency for a specific MsBuild project

I am migrating an old style MsBuild csproj project to using PackageReference format and have run into a problem with transitive dependencies. Consider the following Project A reference NuGet package B and C, each containing one single assembly using…
7
votes
2 answers

How does one specify transitive dependencies of a test-jar for a maven project?

I'm trying to make sure my test-jar published from maven has the right transitive dependencies. The test-jar doesn't, for instance, generate with a dependency on the non-test-jar. Similarly, say AAA publishes a test-jar, and BBB contains a…
7
votes
4 answers

Can Gradle help solve jar hell in any way?

Java 8 here. Say there is an old version of the widget libray, with Maven coordinates widgetmakers:widget:1.0.4, that has a class defined in it like so: public class Widget { private String meow; // constructor, getters, setters,…
6
votes
1 answer

Maven project with native dependency and copying files

I have the following scenario: mylib is a library (for which I have the sources, so I'd like to put them into a Maven project mylib:mylib for example). This library has a jar dependency for which I only have the jar, and it is not to be found in the…
NameZero912
  • 61
  • 1
  • 1
  • 2
6
votes
1 answer

Update transitive dependency

I run npm audit and I get a message assign-deep has a vulnerability but it was fixed in 1.0.1 Unfortunately this is a transitive dependency. Is there a way to update this transitive dependency so it uses v1.0.1 ? └─┬ update@0.7.4 └─┬…
OscarRyz
  • 196,001
  • 113
  • 385
  • 569
1
2
3
15 16