Questions tagged [dependencies]

A dependency exists between two elements if changes to the definition of one element may cause changes to the other.

A dependency exists between two elements if changes to the definition of one element may cause changes to the other.

To quote from the 3rd edition of UML Distilled:

An element C (the client) depends on an element S (the supplier) if and only if changes to the definition of S may cause changes to C.

If the elements are classes, only the direct cause for change (i.e. not through a ripple effect) is called a dependency, i.e. the relation is not transitive.

For packages, C depends on S if a class in C depends on a class in S. Sometimes, the transitive closure is taken, i.e. the dependency of C on a package T can be caused by C depending on S depending on T via class dependencies.

References:

  1. Understanding Dependencies
  2. What is the difference between dependency and association?
12826 questions
2827
votes
17 answers

What's the difference between dependencies, devDependencies, and peerDependencies in NPM package.json file?

This documentation answers my question very poorly. I didn't understand those explanations. Can someone say in simpler words? Maybe with examples if it's hard to choose simple words? Also added peerDependencies, which is closely related and might…
Vitalii Korsakov
  • 45,737
  • 20
  • 72
  • 90
1593
votes
35 answers

How to add local jar files to a Maven project?

How do I add local jar files (not yet part of the Maven repository) directly in my project's library sources?
Praneel PIDIKITI
  • 18,677
  • 13
  • 41
  • 60
1168
votes
26 answers

Automatically create file 'requirements.txt'

Sometimes I download the Python source code from GitHub and don't know how to install all the dependencies. If there isn't any requirements.txt file I have to create it by hand. Given the Python source code directory, is it possible to create…
Igor Barinov
  • 21,820
  • 10
  • 28
  • 33
896
votes
12 answers

How do I tell Maven to use the latest version of a dependency?

In Maven, dependencies are usually set up like this: wonderful-inc dream-library 1.2.3 Now, if you are working with libraries that have frequent…
Anders Sandvig
  • 20,720
  • 16
  • 59
  • 73
894
votes
61 answers

The located assembly's manifest definition does not match the assembly reference

I am trying to run some unit tests in a C# Windows Forms application (Visual Studio 2005), and I get the following error: System.IO.FileLoadException: Could not load file or assembly 'Utility, Version=1.2.0.200, Culture=neutral,…
leora
  • 188,729
  • 360
  • 878
  • 1,366
610
votes
13 answers

How to find unused packages in package.json?

Is there a way to determine if you have packages in your package.json file that are no longer needed? For instance, when trying out a package and later commenting or deleting code, but forgetting to uninstall it, I end up with a couple packages that…
Josh C
  • 7,461
  • 3
  • 24
  • 21
474
votes
6 answers

Depend on a branch or tag using a git URL in a package.json?

Say I've forked a node module with a bugfix and I want to use my fixed version, on a feature branch of course, until the bugfix is merged and released. How would I reference my fixed version in the dependencies of my package.json?
hurrymaplelad
  • 26,645
  • 10
  • 56
  • 76
471
votes
8 answers

Gradle Implementation vs API configuration

I'm trying to figure out what is the difference between api and implementation configuration while building my dependencies. In the documentation, it says that implementation has better build time, but, seeing this comment in a similar question I…
reinaldomoreira
  • 5,388
  • 3
  • 14
  • 29
423
votes
17 answers

Why does npm install say I have unmet dependencies?

I have a node package. When I run npm install from the package root, it installs a bunch of things, but then prints several error messages that look like this: npm WARN unmet dependency…
Sean Mackesey
  • 10,701
  • 11
  • 40
  • 66
355
votes
19 answers

Detecting superfluous #includes in C/C++

I often find that the headers section of a file gets larger and larger all the time, but it never gets smaller. Throughout the life of a source file, classes may have moved and been refactored and it's very possible that there are quite a few…
shoosh
  • 76,898
  • 55
  • 205
  • 325
331
votes
25 answers

Maven: Failed to read artifact descriptor

I am hoping someone can help me with a problem I am struggling with. When I try to build my project from the terminal I get this error: Failed to read artifact descriptor for com.morrislgn.merchandising.common:test-data-utils:jar:0.3b-SNAPSHOT:…
Morrislgn
  • 3,717
  • 4
  • 24
  • 26
327
votes
53 answers

Duplicate class in Kotlin Android

I kept on getting error that there is duplicate error in classes. This is what i have under org.jetbrains.kotlin folder .idea/libraries it seems like the problem is because there is two different dependencies for the kotlin, from stdlib and…
midnighthowlers
  • 3,271
  • 2
  • 3
  • 4
327
votes
24 answers

The engine "node" is incompatible with this module

I am getting below yarn error when deploying to AWS error fs-extra@7.0.1: The engine "node" is incompatible with this module. Expected version ">=6 <7 || >=8". Got "7.0.0" Any idea how will this be resolved? Will this work out if I specify engine…
JN_newbie
  • 5,492
  • 14
  • 59
  • 97
302
votes
4 answers

How do I install package.json dependencies in the current directory using npm

I have a web app: fooapp. I have a package.json in the root. I want to install all the dependencies in a specific node_modules directory. How do I do this? What I want Lets say I have two widget dependencies. I want to end up with a directory…
Daniel Beardsley
  • 19,907
  • 21
  • 66
  • 79
298
votes
20 answers

MSBuild doesn't copy references (DLL files) if using project dependencies in solution

I have four projects in my Visual Studio solution (everyone targeting .NET 3.5) - for my problem only these two are important: MyBaseProject <- this class library references a third-party DLL file (elmah.dll) MyWebProject1 <- this web application…
toebens
  • 4,039
  • 6
  • 24
  • 31
1
2 3
99 100