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?
11076 questions
96
votes
8 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
  • 2,760
  • 8
  • 45
  • 79
96
votes
1 answer

How do I package a python application to make it pip-installable?

I'm writing a django application in my spare time for a footy-tipping competition we're running at work. I figured I'd use this time wisely, and get up to speed on virtualenv, pip, packaging, django 1.3, and how to write an easily redistributable…
Josh Smeaton
  • 43,953
  • 24
  • 121
  • 160
96
votes
4 answers

Is there a way to exclude a Maven dependency globally?

I’m trying to find a “generic” way of excluding a transitive dependency from being included without having to exclude it from all the dependencies that depend on it. For example, if I want to exclude slf4j, I do the following:
Sébastien Le Callonnec
  • 23,877
  • 6
  • 58
  • 77
95
votes
5 answers

How to see dependency tree in sbt?

I am trying to inspect the SBT dependency tree as described in the documentation: sbt inspect tree clean But I get this error: [error] inspect usage: [error] inspect [uses|tree|definitions] Prints the value for 'key', the defining scope,…
Cherry
  • 25,428
  • 40
  • 160
  • 286
93
votes
9 answers

How can I have a Makefile automatically rebuild source files that include a modified header file? (In C/C++)

I have the following makefile that I use to build a program (a kernel, actually) that I'm working on. Its from scratch and I'm learning about the process, so its not perfect, but I think its powerful enough at this point for my level of experience…
Nicholas Flynt
  • 6,608
  • 12
  • 47
  • 69
92
votes
3 answers

Do you put Babel and Webpack in devDependencies or Dependencies?

I'm new to npm and don't really understand what should go into dependencies vs. devDependencies. I know that for testing libraries they should go into dev, but how about for things like babel and webpack? Should they be in dev too, because they're…
stackjlei
  • 7,747
  • 12
  • 42
  • 95
92
votes
8 answers

Maven doesn't recognize sibling modules when running mvn dependency:tree

I'm trying to set up a multi-module Maven project, and the inter-module dependencies are apparently not being set up correctly. I have: commons storage in the parent POM (which has a…
Steven Schlansker
  • 34,307
  • 13
  • 76
  • 99
91
votes
4 answers

Loading Maven dependencies from GitHub

How do I add a Java library from its GitHub repo (the library uses Maven as a build system) as a dependency to my Maven project? Can I do that without downloading and compiling the library?
Arielle
  • 1,081
  • 1
  • 10
  • 14
88
votes
6 answers

Using npm to install or update required packages just like bundler for rubygems

I love Bundler, it's great at dependency management. I love npm, installing node packages is easy! I have a nodejs app and would love to be able to specify my apps dependencies and easily install / update them wherever I deploy my app. This isn't…
Daniel Beardsley
  • 18,289
  • 20
  • 62
  • 76
88
votes
1 answer

What does '->' (arrow) mean in gradle's dependency graph?

I'm trying to run some Android tests, however, the compiler complains that multiple dex files exist. Multiple dex files define Lorg/hamcrest/MatcherAssert; So I'm trying to filter duplicated dependencies: $ ./gradlew -q dependencies…
Some Noob Student
  • 12,826
  • 8
  • 58
  • 99
87
votes
4 answers

Ruby Gemspec Dependency: Is possible have a git branch dependency?

Is possible have a git branch dependency, inside mygem.gemspec? I'm thinking something similar to the following: gem.add_runtime_dependency 'oauth2', :git => 'git@github.com:lgs/oauth2.git' ... but it doesn't work.
Luca G. Soave
  • 11,195
  • 10
  • 55
  • 105
87
votes
13 answers

"Unable to update dependencies of the project" after committing to Subversion

I have a setup project in .NET. When I save the project and the other projects to subversion, the setup project no longer compiles. I get the error "Unable to update dependencies of the project."
Jason N. Gaylord
  • 6,820
  • 13
  • 52
  • 92
87
votes
5 answers

Advantages of bundledDependencies over normal dependencies in npm

npm allows us to specify bundledDependencies, but what are the advantages of doing so? I guess if we want to make absolutely sure we get the right version even if the module we reference gets deleted, or perhaps there is a speed benefit with…
balupton
  • 42,415
  • 27
  • 116
  • 167
84
votes
9 answers

List of dependency jar files in Maven

Using Maven 2, is there a way I can list out the jar dependencies as just the file names? mvn dependency:build-classpath can list the jar files, but that will include the full path to their location in my local repository. What I need is…
Sindri Traustason
  • 4,985
  • 5
  • 44
  • 63
82
votes
2 answers

When installing packages with Yarn, what does "incorrect peer dependency" mean?

I've just cloned a repo, which recommends the use of Yarn to install dependencies. When I run yarn install, it seems to be okay, but it provides this warning: yarn install v0.20.3 [1/4] Resolving packages... [2/4] Fetching packages... [3/4] …