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

Transitive dependencies for static libraries and SCons

I've stumbled over a seemingly simple problem while building two libraries and test programs for both. The Problem: I have two static libraries, libA and libB, and libB depends on libA. I don't want to explicitly link all programs that use libB to…
hochl
  • 12,524
  • 10
  • 53
  • 87
5
votes
1 answer

C# Project dependencies without reference

I have a solution with a multiple projects. Let's say I have projects : P1 P2 with a reference to P1 P3 P4 with a reference to P1 and P3 a dependency to a nugget package N1 P2 is my startup project. I would like to configure P2 with a dependency…
luke77
  • 221
  • 3
  • 15
5
votes
2 answers

The type 'MySqlConnection' exists in both 'MySql.Data Issue

I have Referenced MySql.Data on one project and Other project referenced nuget package which also referenced MySqlConnector inside of it. projects has dependency . when i compile application im getting this error This is application hierarchy is…
Gayan
  • 2,750
  • 5
  • 47
  • 88
5
votes
1 answer

I want to load all JARs from my libs project folder with Maven

I have a Java project using Maven. In my project I have a folder called libs that contains all the JARs that I can't load from internet/external repository. My issue is how to specify to Maven to include those JARs during packaging, building…
Logan Wlv
  • 3,274
  • 5
  • 32
  • 54
5
votes
1 answer

Force a specific version for a dependency when using dep

I am using dep to manage the dependencies of a Go tool I'm writing. This tool uses https://github.com/desertbit/grumble as an dependency. This in turn uses https://github.com/chzyer/readline as a dependency. The problem is that when trying to run my…
Christian
  • 365
  • 1
  • 4
  • 12
5
votes
0 answers

IntelliJ, how to check dependencies between packages

Hi, I'm trying to find a way in IntelliJ to verify package structure of a project. Let's say that my project contains following packages src/common src/module/featureA src/module/featureB src/module/featureC I want to avoid any dependencies…
5
votes
2 answers

Intellij Plugin Development - Gradle does not find dependency of IntelliJ

I am currently developing a plugin for IntelliJ and trying to use another built-in IntelliJ Plugin as dependency (git4idea). As described in the IntelliJ Plugin Development documentation, I added the required JARs to my class Path in Project…
5
votes
1 answer

In Gradle, exclude transitive dependency from all dependencies except one

I'm trying to test the behavior of a logger with JUnit and SLF4J Test, which is "a test implementation of SLF4J that stores log messages in memory and provides methods for retrieving them". From the SLF4J Test docs: SLF4J Test should be the only…
chrisxrobertson
  • 745
  • 6
  • 9
5
votes
6 answers

Android Studio 3.0 Dependency issue

Getting Error: Error:Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.googlecode.mp4parser:isoparser:1.1.22. Open FileShow Details For Dependency: compile…
5
votes
6 answers

Create Instance from assembly and its dependencies in C#

I have an app (let's just call it MyApp) that dynamically creates source code for a class and then compiles it. When it compiles the source code I also reference another DLL (that is the base class for this newly created class) that already exists…
Dan
5
votes
1 answer

How to install pre-release python packages in setup.py install_requires section?

In case a python package has a dependency to external libraries we can do: from setuptools import setup setup(name='funniest', version='0.1', description='The funniest joke in the world', url='http://github.com/storborg/funniest', …
Alireza
  • 6,497
  • 13
  • 59
  • 132
5
votes
1 answer

spring-boot-starter-web hibernate-validator dependency missing on Mac

I created spring boot project(Spring starter project) on STS(Spring tool suit), both of Window and Mac. Here is my pom.xml:
jin
  • 59
  • 1
  • 1
  • 3
5
votes
1 answer

How to override required version defined by composer.json hosted on packagist.org?

I've the following composer.json file: { "require": { "guzzlehttp/guzzle": "^5.3" }, "require-dev": { "aeris/guzzle-http-mock": ">=1.1.5" } } where I'd like to force aeris/guzzle-http-mock package to use different version of…
kenorb
  • 155,785
  • 88
  • 678
  • 743
5
votes
3 answers

Exclude module on build Android Studio

I have an Android Studio project which has 3 modules in it. A, B, C. A depends on C and B depends on C. I'm trying to speed up build times, and i realised that every time i execute assembleRelease/assembeDebug task it builds ALL modules. Every time…
5
votes
1 answer

How to find transitive dependencies in an Android project

I have the problem. I have undesired dependency, that is not included explicitly in the gradle file. I cannot figure out how to find which dependency transitively includes this one. How can I find out where does this dependency come from ? I have…
user4671628