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
5
votes
0 answers

Show dependency graph in Idea for modules only

Is it possible to create a maven dependency graph with Idea, that contains module dependencies only? With module dependencies I mean all sub or parent modules defined in pom.xml files within the or tags. The default dependency…
eztam
  • 3,443
  • 7
  • 36
  • 54
5
votes
2 answers

How do I exclude project dependencies in ASP.NET Core?

Inside my solution using ASP.NET Core 2.0, I have three projects: A, B and C. My desired behavior for the project dependencies is for A to depend on B, B to depend on C and C to have no dependencies. In ASP.NET MVC 5, this was easily achievable by…
5
votes
2 answers

Have Make target depend on binary, which may or may not exist on $PATH

I want to add a Make target that runs a program with envdir. ENVDIR := $(shell command -v envdir) serve: | $(ENVDIR) $(ENVDIR) /usr/local/myservice/env python -m SimpleHTTPServer 8000 The idea is that if the user doesn't have envdir installed,…
Kevin Burke
  • 61,194
  • 76
  • 188
  • 305
5
votes
1 answer

Why do people store typescript's types as dependency in package.json (instead of devDep)?

I noticed in almost all tutorials or blog posts about typescript, people just install packages via npm for types and/or typescript related modules as dependency. This is compile-time related thing and end user will never have to load this, so for me…
obey
  • 796
  • 7
  • 16
5
votes
0 answers

csproj Reference without HintPath and without ReferencePath Assembly location

Usually a csproj file references have either a HintPath or a ReferencePath. I am doing maintenance on a solution that i did not create. in one of the project files, a reference is not resolving. The Reference element opens and closes on itself. and…
Gerrie Pretorius
  • 3,381
  • 2
  • 31
  • 34
5
votes
3 answers

Android - How to make a project depend on another

I'm super overwhelmed with the tons of information out there and my issue is a pretty simple one. I have made a project in IntelliJ Idea which has a package called com.example.util. In this package, I've got some static classes that I want to use in…
Afonso Matos
  • 2,406
  • 1
  • 20
  • 30
5
votes
2 answers

Eclipse RCP plugin error - Cannot resolve module

When I try to run a eclipse product like this: I get about 100 errors type "Could not resolve module XXXX". For example, a partial log view: !ENTRY org.eclipse.compare 4 0 2017-07-14 11:03:53.679 !MESSAGE FrameworkEvent ERROR !STACK…
5
votes
1 answer

Failed to apply plugin [class 'io.spring.gradle.dependencymanagement.DependencyManagementPlugin']?

I am working on a project and I tried to run the gradle wrapper but the build failed and I got the following error: :gulpConstantDev FAILED FAILURE: Build failed with an exception. What went wrong: Execution failed for task :gulpConstantDev. …
avl7949
  • 133
  • 1
  • 12
5
votes
3 answers

Why does CDT rebuild my C-project on Ant build in unrelated project?

I have an Eclipse workspace where a CDT project lives together with other unrelated projects. However, when I run "build as Ant build" in one of those projects, CDT insists on rebuilding its projects too. Anyone have any ideas where to look to…
thoni56
  • 3,145
  • 3
  • 31
  • 49
5
votes
1 answer

What is the difference between compile fileTree & Complile jar in Android Studio?

This is not a coding error. this is just about usage of Android studio. I tried to google and find proper solution, but I couldn't. In an Android studio project there is XYZ.jar file in lib folder. I can use it for compiling as below in…
D.Sachi
  • 51
  • 1
  • 1
  • 2
5
votes
1 answer

dependencies and devDependencies when using webpack

Does it make sense to put any modules into package.json dependencies when I use webpack? When I want to develope a package, I use git clone then npm install, then npm installs all dependencies and devDependencies from package.json file and it…
Paweł
  • 4,238
  • 4
  • 21
  • 40
5
votes
0 answers

Maven dependency using Kotlin not bringing in Kotlin classes

I have two projects, one which is a dependency on the other. I've converted the dependency project over to Kotlin, but now when maven pulls the published dependency from my local maven repository the parent project is not taking in the Kotlin…
Mejari
  • 51
  • 6
5
votes
3 answers

How to determine all runtime (but not static) dependencies of Java source by reading the code?

Let's say I wanted to assert that a given Java source folder contained all of the source code required to run any of the programs contained in the source folder. Simply showing that the whole source folder compiles would be insufficient because…
Dejas
  • 3,511
  • 4
  • 24
  • 36
5
votes
2 answers

CMake add_custom_command with target_link_libraries

For a number of reasons I have to manually generate a static library through a custom command. However, it seems that the custom command is only executed when a target specifically requests its output files. If I try to link the generated static…
Svalorzen
  • 5,353
  • 3
  • 30
  • 54
5
votes
5 answers

Why is Visual Studios Installer not picking up dependencies

I'm using Visual Studio 2005. I have a program written in C#. When I create the installer and then add the primary output, it's not picking up any dependencies. Not even .Net. Anybody have any ideas?
Kevin
  • 7,162
  • 11
  • 46
  • 70
1 2 3
99
100